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

Question about generate_random_masks function in MaskViT #11

Open
Bo396543018 opened this issue Jul 4, 2024 · 1 comment
Open

Question about generate_random_masks function in MaskViT #11

Bo396543018 opened this issue Jul 4, 2024 · 1 comment

Comments

@Bo396543018
Copy link

The paper mentions that Backbone uses the same ViT-base as UniHCP, but when looking at the code, generate_random_masks is used in vit to shuffle. I would like to ask what the purpose of this is and if there are any more literature on this approach.

@Cohesion97
Copy link
Collaborator

During the project, we attempted to unify both supervised training and mask image modeling. However, we found that introducing the strategy of mask image modeling would decrease the performance, so we just removed this strategy. You can find that all the tokens are appended with positional embedding, then shuffled before the encoder, and will be reshuffled after the encoder. This is almost the same as not using shuffling because the positional information is restored in the positional embedding instead of their relative index in the self-attn module.

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