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

The size of tensor a (8) must match the size of tensor b (64) at non-singleton dimension 0 #62

Closed
VictorGalu opened this issue Mar 17, 2023 · 6 comments

Comments

@VictorGalu
Copy link

Hello! I can't start interogator-ext. Startup stops with "Exception <class 'RuntimeError'>". This error falls in the thread title, Internal CLIP and DeepBooru work. Can anyone help with this problem?

@linqingfeng
Copy link

If the transformers version is greater than 4.27, this error will be triggered. Downgrading the transformers version to 4.26.1 can fix this error. I don’t know the specific reason, but this method works for me.

pip3 install transformers==4.26.1

@Vigilence
Copy link

Vigilence commented Mar 19, 2023

If the transformers version is greater than 4.27, this error will be triggered. Downgrading the transformers version to 4.26.1 can fix this error. I don’t know the specific reason, but this method works for me.

pip3 install transformers==4.26.1

If this is true, then maybe the conflict is due to the Dreambooth extension which installs 4.27.1

Dreambooth's requirement.txt

  • accelerate==0.17.1
  • albumentations~=1.3.0
  • bitsandbytes==0.35.4
  • dadaptation==1.5.0
  • diffusers~=0.14.0
  • discord-webhook~=1.1.0
  • fastapi~=0.90.1
  • ftfy~=6.1.1
  • gitpython~=3.1.31
  • lion-pytorch~=0.0.7
  • mediapipe-silicon; sys_platform == 'darwin'
  • mediapipe; sys_platform != 'darwin'
  • modelcards~=0.1.6
  • tensorboard~=2.11.2
  • tensorflow==2.11.0; sys_platform != 'darwin' or platform_machine != 'arm64'
  • tensorflow-macos==2.11.0; sys_platform == 'darwin' and platform_machine == 'arm64'
  • tqdm~=4.64.1
  • transformers~=4.27.1

@DrewWalkup
Copy link
Contributor

@linqingfeng nailed it, thank you!

@VictorGalu
Copy link
Author

Thanks!

@rmpku
Copy link

rmpku commented May 24, 2023

The same error, update clip-interrogator==0.5.4 to clip-interrogator==0.6.0, it's works for me.

@pharmapsychotic
Copy link
Owner

Yes sorry the regular install of auto1111 webui uses one version of transformers and the dreambooth extension installs a different version and they need different versions of clip-interrogator. there may be some way for clip-interrogator to check what transformers is installed and manage to support both but I haven't had an opportunity to sort that out yet.

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

6 participants