acorderob / sd-webui-prompt-postprocessor

Stable Diffusion WebUI & ComfyUI extension to post-process the prompt, including sending content from the prompt to the negative prompt and wildcards.
MIT License
23 stars 1 forks source link

[Issue] Want to give this addon a try but got a error "object of type 'NoneType' has no len()" #6

Closed DivanoDova closed 10 months ago

DivanoDova commented 10 months ago

When i try to use this extension i get this error:

*** Error running process: C:\amd_sd\stable-diffusion-webui-directml\extensions\sd-webui-sendtonegative\scripts\extension.py Traceback (most recent call last): File "C:\amd_sd\stable-diffusion-webui-directml\modules\scripts.py", line 619, in process script.process(p, *script_args) File "C:\amd_sd\stable-diffusion-webui-directml\extensions\sd-webui-sendtonegative\scripts\extension.py", line 41, in process for i in range(len(p.all_hr_prompts)): # pylint: disable=consider-using-enumerate TypeError: object of type 'NoneType' has no len()

I use the DML version of Automatic1111 (latest version): https://github.com/lshqqytiger/stable-diffusion-webui-directml I have dynamic prompt updated to the latest version.

My dynamic prompt folder load first.

acorderob commented 10 months ago

I will fix this, but I'm planning on changing the extension scope and name and i will probably do the fix in the new version. I'll see this weekend.

DivanoDova commented 10 months ago

Thank you for the quick answer, for information i just saw that the extension is working as attended so not really a big issue, i can ignore these errors for now :p

acorderob commented 10 months ago

Fixed in v2.1.5