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

RuntimeError: The size of tensor a (197) must match the size of tensor b (577) at non-singleton dimension 1 #28

Open
jeremyEudaric opened this issue Sep 14, 2022 · 1 comment

Comments

@jeremyEudaric
Copy link

Hi,
Congratulation for your amazing work ! when l am using the VIT pre trained model l got this weird issue. Do you have an idea where this issue comes from ?

RuntimeError: The size of tensor a (197) must match the size of tensor b (577) at non-singleton dimension 1

/tmp/ipykernel_701421/2011775653.py in training(epochs)
34
35
---> 36 output = Model(inputs)
37
38 loss = MSE(output,label)

@skynbe
Copy link

skynbe commented Oct 16, 2022

set ViT('B_16_imagenet1k', pretrained=True, image_size=224)

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