AttributeError: 'NoneType' object has no attribute 'shape'
prescience-data opened this issue · 2 comments
File "D:\AI\stable-diffusion-webui-15\extensions\sd-webui-incantations\scripts\smoothed_energy_guidance.py", line 199, in seg_to_q_hook
q_uncond, q= output.chunk(2, dim=0)
ValueError: not enough values to unpack (expected 2, got 1)
I get this crash whenever I enable the following settings, and there seems to be no way to escape the crash on all subsequent runs even when totally disabling all Incantations will the process is restarted.
I'm trying to follow the code back to what might be causing an empty value to be provided as the argument but my Python is not amazing. Just logging in case there is an obvious fix.
When I disable all Incantations this is the alternative non escapable error that persists until the process is restarted:
sd-webui-incantations/scripts/scfg.py
Line 421 in 980d638
File "D:\AI\stable-diffusion-webui-15\modules\sd_samplers_cfg_denoiser.py", line 289, in forward
denoised = self.combine_denoised(x_out, conds_list, uncond, cond_scale * self.cond_scale_miltiplier)
File "D:\AI\stable-diffusion-webui-15\extensions\sd-webui-incantations\scripts\cfg_combiner.py", line 110, in
pass_conds_func = lambda *args, **kwargs: combine_denoised_pass_conds_list(
File "D:\AI\stable-diffusion-webui-15\extensions\sd-webui-incantations\scripts\cfg_combiner.py", line 276, in combine_denoised_pass_conds_list
return new_combine_denoised(*args)
File "D:\AI\stable-diffusion-webui-15\extensions\sd-webui-incantations\scripts\cfg_combiner.py", line 215, in new_combine_denoised
rate = scfg_combine_denoised(
File "D:\AI\stable-diffusion-webui-15\extensions\sd-webui-incantations\scripts\scfg.py", line 421, in scfg_combine_denoised
if mask_t.shape[2:] != model_delta_norm.shape[2:]:
AttributeError: 'NoneType' object has no attribute 'shape'
Related #56 (comment)
Same issue for me