We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
class OverlapPatchEmbed(nn.Module): """ Image to Patch Embedding """
def __init__(self, img_size=224, patch_size=7, stride=4, in_chans=3, embed_dim=768): super().__init__() img_size = to_2tuple(img_size) patch_size = to_2tuple(patch_size) self.img_size = img_size self.patch_size = patch_size self.H, self.W = img_size[0] // patch_size[0], img_size[1] // patch_size[1] self.num_patches = self.H * self.W
你好 OverlapPatchEmbed 类中的这里进行的计算后续也没有用到啊? 有什么特别意义吗?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
class OverlapPatchEmbed(nn.Module):
""" Image to Patch Embedding
"""
你好 OverlapPatchEmbed 类中的这里进行的计算后续也没有用到啊? 有什么特别意义吗?
The text was updated successfully, but these errors were encountered: