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

About the patch size #18

Open
Jarviswang94 opened this issue Sep 13, 2023 · 3 comments
Open

About the patch size #18

Jarviswang94 opened this issue Sep 13, 2023 · 3 comments

Comments

@Jarviswang94
Copy link

Hi @volgachen @ivaopenlab
Thank you for sharing your code.
I found that your patch size is set as 4 in dpt.py line 369.
Is this correct? Or is there other meaninng about it?

model = DeformablePatchTransformer(

model = DeformablePatchTransformer(
        patch_size=4, embed_dims=embed_dims, num_heads=[1, 2, 5, 8], mlp_ratios=[8, 8, 4, 4], qkv_bias=True,
        norm_layer=partial(nn.LayerNorm, eps=1e-6), depths=[3, 4, 18, 3], sr_ratios=[8, 4, 2, 1],
        patch_embeds=patch_embeds,
        **kwargs)

Looking forward to further discussion with you.
Thank you very much.

@o0t1ng0o
Copy link

@volgachen @ivaopenlab

@volgachen
Copy link
Collaborator

Yes, this patch size follows the setting in PVT. It is a multi-stage backbone with the first patch embedding layer patch_size=4.

@o0t1ng0o
Copy link

o0t1ng0o commented Oct 4, 2023

Thank you very much for your reply!

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

3 participants