acorderob / sd-webui-prompt-postprocessor

Stable Diffusion WebUI extension to post-process the prompt, including sending content from the prompt to the negative prompt.
MIT License
18 stars 0 forks source link

[Issue] 'Options' object has no attribute 'prompt_attention' #2

Closed VRArt1 closed 11 months ago

VRArt1 commented 11 months ago

Current Behavior

Not currently functioning.

Expected Behavior

Functioning.

Failure Information (for bugs)

When trying to utilize sendtonegative the error at the bottom is logged.

Steps to Reproduce

  1. Insert a negative prompt into the positive prompt area with the correct formatting. I.E. <!prompt!>
  2. Click generate.

Context

No special utilization or oddities from what I can tell.

Failure Logs

*** Error running process: C:\Users\vrart\Desktop\AI\stable-diffusion-webui\extensions\sd-webui-sendtonegative\scripts\extension.py Traceback (most recent call last): File "C:\Users\vrart\Desktop\AI\stable-diffusion-webui\modules\scripts.py", line 519, in process script.process(p, *script_args) File "C:\Users\vrart\Desktop\AI\stable-diffusion-webui\extensions\sd-webui-sendtonegative\scripts\extension.py", line 34, in process stn = SendToNegative(self.__logstn, opts=opts) File "C:\Users\vrart\Desktop\AI\stable-diffusion-webui\extensions\sd-webui-sendtonegative\sendtonegative.py", line 38, in __init__ if opts is not None and opts.prompt_attention == "Compel parser": File "C:\Users\vrart\Desktop\AI\stable-diffusion-webui\modules\shared.py", line 617, in __getattr__ return super(Options, self).__getattribute__(item) AttributeError: 'Options' object has no attribute 'prompt_attention'

acorderob commented 11 months ago

That property exists in SD.Next but not in A1111. I will add a better check asap. Thanks for the report.

acorderob commented 11 months ago

It should be fixed now. Please test.