Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: 'NoneType' object has no attribute 'shape' #62

Open
prescience-data opened this issue Aug 11, 2024 · 2 comments
Open

AttributeError: 'NoneType' object has no attribute 'shape' #62

prescience-data opened this issue Aug 11, 2024 · 2 comments

Comments

@prescience-data
Copy link

prescience-data commented Aug 11, 2024

q_uncond, q= output.chunk(2, dim=0)

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.

image

When I disable all Incantations this is the alternative non escapable error that persists until the process is restarted:

if mask_t.shape[2:] != model_delta_norm.shape[2:]:

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'

@prescience-data
Copy link
Author

Related #56 (comment)

@lhucklen
Copy link

lhucklen commented Sep 7, 2024

Same issue for me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants