Does anyone know what "RuntimeError: The weights must not sum to 0" means?

Posted Jul 8, 2022, 1:30 AM UTC

14
Dapper_Ad_8496•

Yes. You cannot have "a painting of a Lighthouse:1", "blurry:-1", because the sum of 1 + -1 is 0.

And then you divide by 0, which is a big no no for your computer

3
MexElfOP•

Interesting. That's not the case here though. The only number in my current prompt is "Text:-1" which I've used in many prompts prior on this same render.

Edit- I tried removing the -1 from that prompt. We'll see if it works I guess. thanks

Edit2- That worked. Interesting that it's the only number in that prompt yet it caused the error. Thanks again!

1
anonalf•

I believe you don't really want to go negative either or it can get super weird and pretty much ignore the prompt

1
MexElfOP•

thanks

1