[GH-ISSUE #38] The size of tensor a (8) must match the size of tensor b (64) at non-singleton dimension #34

Open
opened 2026-10-31 21:16:17 +00:00 by bsakaguchi · 9 comments
Owner

Originally created by @xieanbin on GitHub (Apr 5, 2023).
Original GitHub issue: https://github.com/pharmapsychotic/clip-interrogator-ext/issues/38

how to fix
联想截图_20230406002606

Originally created by @xieanbin on GitHub (Apr 5, 2023). Original GitHub issue: https://github.com/pharmapsychotic/clip-interrogator-ext/issues/38 how to fix <img width="1808" alt="联想截图_20230406002606" src="https://user-images.githubusercontent.com/20460746/230144227-d8992d0a-4057-427f-8eee-18fcf0e39eab.png">
Author
Owner

@Photodeus commented on GitHub (Apr 11, 2023):

Likely a duplicate to https://github.com/pharmapsychotic/clip-interrogator-ext/issues/33

<!-- gh-comment-id:1504159190 --> @Photodeus commented on GitHub (Apr 11, 2023): Likely a duplicate to https://github.com/pharmapsychotic/clip-interrogator-ext/issues/33
Author
Owner

@Photodeus commented on GitHub (Apr 11, 2023):

Also this, a closed issue
https://github.com/pharmapsychotic/clip-interrogator-ext/issues/21

<!-- gh-comment-id:1504169173 --> @Photodeus commented on GitHub (Apr 11, 2023): Also this, a closed issue https://github.com/pharmapsychotic/clip-interrogator-ext/issues/21
Author
Owner

@Dahvikiin commented on GitHub (Apr 23, 2023):

use the previous commit 1ecedb5 which uses clip-interrogator 0.6.0.

<!-- gh-comment-id:1518917622 --> @Dahvikiin commented on GitHub (Apr 23, 2023): use the previous commit [1ecedb5](https://github.com/pharmapsychotic/clip-interrogator-ext/tree/1ecedb5ccd59ada1e9b8f7b635bcdfa30459fa01) which uses clip-interrogator 0.6.0.
Author
Owner

@jcrsantiago commented on GitHub (May 18, 2023):

I can't get it to work either. I have tried both the lastest version and 1ecedb5

<!-- gh-comment-id:1553402102 --> @jcrsantiago commented on GitHub (May 18, 2023): I can't get it to work either. I have tried both the lastest version and [1ecedb5](https://github.com/pharmapsychotic/clip-interrogator-ext/tree/1ecedb5ccd59ada1e9b8f7b635bcdfa30459fa01)
Author
Owner

@Dahvikiin commented on GitHub (May 18, 2023):

interesting, in "venv\Libsite-packages" delete the folders (should be 2) called "clip_interrogator" and "clip_interrogator-0.6.0" (if clip_interrogator-0.5.4 exists, the same). Although it is also true that I use a more recent version of transformers.

<!-- gh-comment-id:1553498908 --> @Dahvikiin commented on GitHub (May 18, 2023): interesting, in "venv\Libsite-packages" delete the folders (should be 2) called "clip_interrogator" and "clip_interrogator-0.6.0" (if clip_interrogator-0.5.4 exists, the same). Although it is also true that I use a more recent version of `transformers`.
Author
Owner

@jcrsantiago commented on GitHub (May 20, 2023):

Which version of transfers do you use? Are you using it with 1ecedb5

<!-- gh-comment-id:1556009915 --> @jcrsantiago commented on GitHub (May 20, 2023): > Which version of transfers do you use? Are you using it with [1ecedb5](https://github.com/pharmapsychotic/clip-interrogator-ext/tree/1ecedb5ccd59ada1e9b8f7b635bcdfa30459fa01)
Author
Owner

@Dahvikiin commented on GitHub (May 23, 2023):

Sorry i didn't see your message! currently i use transformers==4.29.2, but you can use previous versions, always higher than =4.25.1, and yes that commit (i made a fork for myself, i didn't want to unintentionally update the extension and have it break again). i had no problem. if you want to update transformers edit requirements_versions.txt (don't forget to restore it before updating AUTO1111 or whatever you are using).
you may also need to delete the folders "clip_interrogator" and "clip_interrogator-0.6.0.dist-info" in \venv\Lib\site-packages.

<!-- gh-comment-id:1558479126 --> @Dahvikiin commented on GitHub (May 23, 2023): Sorry i didn't see your message! currently i use `transformers==4.29.2`, but you can use previous versions, always higher than `=4.25.1`, and yes that commit (i made a [fork for myself](https://github.com/Dahvikiin/clip-interrogator-ext), i didn't want to unintentionally update the extension and have it break again). i had no problem. if you want to update transformers edit `requirements_versions.txt` (don't forget to restore it before updating AUTO1111 or whatever you are using). you may also need to delete the folders "`clip_interrogator`" and "`clip_interrogator-0.6.0.dist-info`" in \venv\Lib\site-packages.
Author
Owner

@ronbere commented on GitHub (Jun 24, 2023):

Sorry i didn't see your message! currently i use transformers==4.29.2, but you can use previous versions, always higher than =4.25.1, and yes that commit (i made a fork for myself, i didn't want to unintentionally update the extension and have it break again). i had no problem. if you want to update transformers edit requirements_versions.txt (don't forget to restore it before updating AUTO1111 or whatever you are using). you may also need to delete the folders "clip_interrogator" and "clip_interrogator-0.6.0.dist-info" in \venv\Lib\site-packages.

same issue with your fork...Loading CLIP model...
Loaded CLIP model and data in 3.89 seconds.
The size of tensor a (8) must match the size of tensor b (64) at non-singleton dimension 0

<!-- gh-comment-id:1605418987 --> @ronbere commented on GitHub (Jun 24, 2023): > Sorry i didn't see your message! currently i use `transformers==4.29.2`, but you can use previous versions, always higher than `=4.25.1`, and yes that commit (i made a [fork for myself](https://github.com/Dahvikiin/clip-interrogator-ext), i didn't want to unintentionally update the extension and have it break again). i had no problem. if you want to update transformers edit `requirements_versions.txt` (don't forget to restore it before updating AUTO1111 or whatever you are using). you may also need to delete the folders "`clip_interrogator`" and "`clip_interrogator-0.6.0.dist-info`" in \venv\Lib\site-packages. same issue with your fork...Loading CLIP model... Loaded CLIP model and data in 3.89 seconds. The size of tensor a (8) must match the size of tensor b (64) at non-singleton dimension 0
Author
Owner

@Grocel commented on GitHub (Sep 1, 2023):

Error happens again as reported in issue https://github.com/pharmapsychotic/clip-interrogator-ext/issues/64.

<!-- gh-comment-id:1703073421 --> @Grocel commented on GitHub (Sep 1, 2023): Error happens again as reported in issue https://github.com/pharmapsychotic/clip-interrogator-ext/issues/64.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
pharmapsychotic/clip-interrogator-ext#34
No description provided.