Skip to content
New issue

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

你好 OverlapPatchEmbed 类中的问题? #25

Open
AustinYuAo opened this issue Aug 10, 2023 · 0 comments
Open

你好 OverlapPatchEmbed 类中的问题? #25

AustinYuAo opened this issue Aug 10, 2023 · 0 comments

Comments

@AustinYuAo
Copy link

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 类中的这里进行的计算后续也没有用到啊? 有什么特别意义吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant