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

On masking input images #56

Open
xiaohao-lin1 opened this issue Jul 19, 2023 · 1 comment
Open

On masking input images #56

xiaohao-lin1 opened this issue Jul 19, 2023 · 1 comment

Comments

@xiaohao-lin1
Copy link

Dear Author,

In paper, you mentioned that masking is done on the raw images. However, in put code, masking is only done after the stem layer. Can you explain the inconsistency? Thank you!

@hughsando
Copy link

I think it is because the output of the stem layer is aligned to the patch boundaries so the two are equivalent, and this way allows the mask layers to be at lower resolution. You could potentially save some compute by not calculating the stem of masked-out blocks but maybe the overhead prevents this from being worthwhile.

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