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

A issus of MAEViTEncoder's code #11

Open
wangbaoyuanGUET opened this issue Apr 21, 2024 · 1 comment
Open

A issus of MAEViTEncoder's code #11

wangbaoyuanGUET opened this issue Apr 21, 2024 · 1 comment

Comments

@wangbaoyuanGUET
Copy link

Hi!Developers of SlefMedMAE!
While I checking the code of MAEViTEncoder, I see self.patch_embed = embed_layer(img_size=patch_size, patch_size=patch_size, in_chans=in_chans, embed_dim=embed_dim). I'd like to know why img_size uses patch_size instead of the size of the img?

@HadiHammoud44
Copy link

HadiHammoud44 commented Sep 19, 2024

same concern, i guess because the image was already reshaped as (Batch * Sequence Length, in_channels, new_image_size) before applying the 3D Conv, where the new shape equals the patch size.

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

2 participants