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

Closed
opened 2026-10-31 21:16:09 +00:00 by bsakaguchi · 10 comments
Owner

Originally created by @VictorGalu on GitHub (Mar 17, 2023).
Original GitHub issue: https://github.com/pharmapsychotic/clip-interrogator-ext/issues/21

Hello! I can't start interogator-ext. Running on the "Promt" tab interrupts with "Exception <class 'RuntimeError'>". In the terminal the error "The size of tensor a (8) must match the size of tensor b (64) at non-singleton dimension", Tab "Analyze" and "Internal CLIP" and "DeepBooru" work. Can anyone help me with this problem?

Originally created by @VictorGalu on GitHub (Mar 17, 2023). Original GitHub issue: https://github.com/pharmapsychotic/clip-interrogator-ext/issues/21 Hello! I can't start interogator-ext. Running on the "Promt" tab interrupts with "Exception <class 'RuntimeError'>". In the terminal the error "The size of tensor a (8) must match the size of tensor b (64) at non-singleton dimension", Tab "Analyze" and "Internal CLIP" and "DeepBooru" work. Can anyone help me with this problem?
Author
Owner

@adisakau commented on GitHub (Mar 18, 2023):

I have the same issue. If anyone found a solution, please kindly share.

<!-- gh-comment-id:1474757500 --> @adisakau commented on GitHub (Mar 18, 2023): I have the same issue. If anyone found a solution, please kindly share.
Author
Owner

@sergiobr commented on GitHub (Mar 18, 2023):

I have the same here. Also happens with SmartPreprocess extension. It's working with img2img tab's button Clip Interrogator.

<!-- gh-comment-id:1474933891 --> @sergiobr commented on GitHub (Mar 18, 2023): I have the same here. Also happens with SmartPreprocess extension. It's working with img2img tab's button Clip Interrogator.
Author
Owner

@Vigilence commented on GitHub (Mar 19, 2023):

Same issue.

<!-- gh-comment-id:1475149711 --> @Vigilence commented on GitHub (Mar 19, 2023): Same issue.
Author
Owner

@VictorGalu commented on GitHub (Mar 19, 2023):

Hi! we found solution: https://github.com/pharmapsychotic/clip-interrogator/pull/63

<!-- gh-comment-id:1475381924 --> @VictorGalu commented on GitHub (Mar 19, 2023): Hi! we found solution: https://github.com/pharmapsychotic/clip-interrogator/pull/63
Author
Owner

@Vigilence commented on GitHub (Mar 20, 2023):

How do I implement the solution?

Manually installed transformers 4.26.1 doesn't fix the issue on my end.

<!-- gh-comment-id:1475470614 --> @Vigilence commented on GitHub (Mar 20, 2023): How do I implement the solution? Manually installed transformers 4.26.1 doesn't fix the issue on my end.
Author
Owner

@pharmapsychotic commented on GitHub (Mar 20, 2023):

If you have another extension installed like Dreambooth which is pinning 4.27 then each time you run auto1111 it may install the newer transformers which breaks CLIP Interrogator. Working on update now so that transformers 4.27 can be supported.

<!-- gh-comment-id:1475481136 --> @pharmapsychotic commented on GitHub (Mar 20, 2023): If you have another extension installed like Dreambooth which is pinning 4.27 then each time you run auto1111 it may install the newer transformers which breaks CLIP Interrogator. Working on update now so that transformers 4.27 can be supported.
Author
Owner

@Vigilence commented on GitHub (Mar 20, 2023):

If you have another extension installed like Dreambooth which is pinning 4.27 then each time you run auto1111 it may install the newer transformers which breaks CLIP Interrogator. Working on update now so that transformers 4.27 can be supported.

That's exactly the issue I have. Thank you for looking into a fix. ❤

<!-- gh-comment-id:1475495335 --> @Vigilence commented on GitHub (Mar 20, 2023): > If you have another extension installed like Dreambooth which is pinning 4.27 then each time you run auto1111 it may install the newer transformers which breaks CLIP Interrogator. Working on update now so that transformers 4.27 can be supported. That's exactly the issue I have. Thank you for looking into a fix. ❤
Author
Owner

@pharmapsychotic commented on GitHub (Mar 20, 2023):

@Vigilence can you give it a try now? After updating extension you will need full restart of the webui.

<!-- gh-comment-id:1475608467 --> @pharmapsychotic commented on GitHub (Mar 20, 2023): @Vigilence can you give it a try now? After updating extension you will need full restart of the webui.
Author
Owner

@Vigilence commented on GitHub (Mar 20, 2023):

@Vigilence can you give it a try now? After updating extension you will need full restart of the webui.

Working great, thank you!

<!-- gh-comment-id:1477095811 --> @Vigilence commented on GitHub (Mar 20, 2023): > @Vigilence can you give it a try now? After updating extension you will need full restart of the webui. Working great, thank you!
Author
Owner

@pharmapsychotic commented on GitHub (Mar 21, 2023):

okay that's good news!

<!-- gh-comment-id:1477152644 --> @pharmapsychotic commented on GitHub (Mar 21, 2023): okay that's good news!
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#20
No description provided.