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

AssertionError: Input image size (32*32) doesn't match model (224*224). #1

Closed
DDxk369 opened this issue Nov 2, 2021 · 1 comment
Closed

Comments

@DDxk369
Copy link

DDxk369 commented Nov 2, 2021

Dear Author:
This error occurred when I tried to run resnet_vit_compare.py:
AssertionError: Input image size (3232) doesn't match model (224224).
Where do I need to modify it?

@AntixK
Copy link
Owner

AntixK commented Nov 5, 2021

Hi, resnet_vit_compare.py was an incomplete test code I used for some preliminary testing. I removed it now from the main repo.

To answer your question - the error is because ViT requires input image to be of size 224x224. So you can use the Imagenet dataset and resize it to 224x224 and compare the two models.

@AntixK AntixK closed this as completed Nov 5, 2021
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