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

May be a bug? #18

Open
RachelTeamo opened this issue Dec 15, 2022 · 0 comments
Open

May be a bug? #18

RachelTeamo opened this issue Dec 15, 2022 · 0 comments

Comments

@RachelTeamo
Copy link

Hi~Thanks for your code.
But in this line it may be a bug. I try your code in my tasks, and the image shape is [382,382]. But args.token_size=16 means self.num_patches=256, but 382/16 * 382/16 = 512. In your demo, your image shape is [256,256] but 256/16 =16 is a coincide. When the image is not [256,256], the number of patches may not right.

So I guess maybe we should use args.input_size//args.token_size instead of args.token_size.

Please take a look, excuse me.

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

1 participant