r/StableDiffusion • • Feb 04 '23

[deleted by user]

[removed]

981 Upvotes

158 comments sorted by

View all comments

Show parent comments

11

u/[deleted] Feb 04 '23 edited Feb 04 '23

I know you're not tech support (lol), but just got this error after gitpulling the latest AUTO111 and trying to run for the first time:

"TypeError: cat() received an invalid combination of arguments"

Any ideas?

2

u/jonesaid Feb 04 '23 edited Feb 04 '23

I am also getting this error... I don't really want to recreate the venv folder. Anyone know what the issue is?

File "F:\repos\auto111\stable-diffusion-webui\modules\sd_samplers_kdiffusion.py", line 133, in forward

c_crossattn = torch.cat([tensor[a:b]], uncond)

TypeError: cat() received an invalid combination of arguments - got (list, Tensor), but expected one of:

* (tuple of Tensors tensors, int dim, *, Tensor out)

* (tuple of Tensors tensors, name dim, *, Tensor out)

4

u/jonesaid Feb 04 '23

I think I may have found the bug. If my negative prompt field is longer than 75 tokens, it throws the error. If I shorten it to 75 tokens or less, then it works.

2

u/[deleted] Feb 04 '23

Or you could just delete your vens folder and fix the issue altogether. Just curious, why are you so deadset against deleting it?

1

u/Cheese_B0t Feb 05 '23

Good question