muerrilla / stable-diffusion-NPW

Negative Prompt Weight: Extension for Stable Diffusion Web UI
The Unlicense
111 stars 10 forks source link

RuntimeError: The size of tensor a (77) must match the size of tensor b (231) at non-singleton dimension 1 #1

Closed YKefasu closed 1 year ago

YKefasu commented 1 year ago

Error executing callback cfg_denoiser_callback for C:\Stable Diffusion WebUI\extensions\stable-diffusion-NPW\scripts\npw.py Traceback (most recent call last): File "C:\Stable Diffusion WebUI\modules\script_callbacks.py", line 167, in cfg_denoiser_callback c.callback(params) File "C:\Stable Diffusion WebUI\extensions\stable-diffusion-NPW\scripts\npw.py", line 62, in denoiser_callback new_uncond = torch.lerp(self.empty_uncond, uncond, self.weight) RuntimeError: The size of tensor a (77) must match the size of tensor b (231) at non-singleton dimension 1

muerrilla commented 1 year ago

This was fixed in this commit. Please update and report back if possible.