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 (3) must match the size of tensor b (9) at non-singleton dimension 0 #27

Open
justinday123 opened this issue May 8, 2023 · 3 comments

Comments

@justinday123
Copy link

i didn't changed any code but this error happened

@szxuhongye
Copy link

Same here

@huwarr
Copy link

huwarr commented Jun 15, 2023

installing transformers==4.26.1 helped in my case.
it seems like basically any version <4.27 and >=4.25 will do

@Larerr
Copy link

Larerr commented Mar 18, 2024

@huwarr I followed your instructions and installed the 4.26.1 version of transformers, but I'm still getting errors in the same situation. What amazes me even more is that two images in the exact same format, one works and the other gives me this mismatch error, do you have any other suggestions?

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

4 participants