Skip to content

About the patch size #18

@Jarviswang94

Description

@Jarviswang94

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?
https://github.com/CASIA-IVA-Lab/DPT/blob/62e6322b42f8de35d215aa3cdd458088161b5949/classification/models/dpt/dpt.py#L369

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions