At the img2img mode, it works perfectly. But when clicking Generate button at the txt2img tab, it will trigger an error:
*** Error running before_process: \path\to\StableDiffusion\stable-diffusion-webui\extensions\a-person-mask-generator\scripts\a_person_mask_generator.py
Traceback (most recent call last):
File "\path\to\StableDiffusion\stable-diffusion-webui\modules\scripts.py", line 611, in before_process
script.before_process(p, *script_args)
TypeError: Script.before_process() missing 2 required positional arguments: 'enabled' and 'mask_targets'
It seems that the bug is caused by no arguments to submit at the txt2img mode while before_process() is wrongly triggered to require two non-exist arguments. May fix it by adding a tab/mode check.
At the
img2img
mode, it works perfectly. But when clickingGenerate
button at thetxt2img
tab, it will trigger an error:It seems that the bug is caused by no arguments to submit at the
txt2img
mode whilebefore_process()
is wrongly triggered to require two non-exist arguments. May fix it by adding a tab/mode check.