stable-diffusion-webui
stable-diffusion-webui copied to clipboard
[Bug]: Scripts not working, TypeError: Script.run() missing X required positional arguments
Is there an existing issue for this?
- [X] I have searched the existing issues and checked the recent builds/commits
What happened?
any script i select and run get the follwoing error
TypeError: Script.run() missing X required positional arguments, when X is the # of arguments that the script should have.
cant run any script
Steps to reproduce the problem
- Select any script
- Try to run
- .Get exception
What should have happened?
script should run without exception
Version or Commit where the problem happens
Version: v1.4.0 Commit hash: 394ffa7b0a7fff3ec484bcd084e673a8b301ccc8
What Python version are you running on ?
Python 3.10.x
What platforms do you use to access the UI ?
Linux
What device are you running WebUI on?
Nvidia GPUs (RTX 20 above)
Cross attention optimization
xformers
What browsers do you use to access the UI ?
Microsoft Edge
Command Line Arguments
--xformers
List of extensions
PBRemTools | https://github.com/mattyamonaca/PBRemTools.git | main | d0fee2a8 | Thu Jun 29 14:08:23 2023 | unknown |
---|---|---|---|---|---|
SD-CN-Animation | https://github.com/volotat/SD-CN-Animation.git | main | 2e257bbf | Tue May 30 16:49:03 2023 | unknown |
SadTalker | https://github.com/OpenTalker/SadTalker | main | ae0b2635 | Mon Jul 3 05:48:35 2023 | unknown |
Stable-Diffusion-Webui-Civitai-Helper | https://github.com/butaixianran/Stable-Diffusion-Webui-Civitai-Helper.git | main | 920ca326 | Tue May 23 11:53:22 2023 | unknown |
StylePile | https://github.com/some9000/StylePile.git | main | 85b549a1 | Thu Apr 13 18:42:34 2023 | unknown |
TemporalKit | https://github.com/CiaraStrawberry/TemporalKit | main | 504774d9 | Sun May 7 21:37:21 2023 | unknown |
a1111-sd-webui-tagcomplete | https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git | main | 7f188563 | Sun Jun 25 10:34:57 2023 | unknown |
asymmetric-tiling-sd-webui | https://github.com/tjm35/asymmetric-tiling-sd-webui.git | main | b4470ddc | Fri Nov 18 17:42:54 2022 | unknown |
clip-interrogator-ext | https://github.com/pharmapsychotic/clip-interrogator-ext.git | main | c0bf9005 | Tue Jun 27 19:06:31 2023 | unknown |
deforum-for-automatic1111-webui | https://github.com/deforum-art/deforum-for-automatic1111-webui.git | automatic1111-webui | 858c4dd6 | Sun Jul 2 16:52:11 2023 | unknown |
gif2gif | https://github.com/LonicaMewinsky/gif2gif.git | main | 5121851e | Sat May 13 14:56:04 2023 | unknown |
infinite-zoom-automatic1111-webui | https://github.com/v8hid/infinite-zoom-automatic1111-webui.git | main | 1139764b | Wed May 3 17:08:52 2023 | unknown |
sd-dynamic-prompts | https://github.com/adieyal/sd-dynamic-prompts.git | main | 525ee62a | Mon Jun 19 09:23:10 2023 | unknown |
sd-extension-system-info | https://github.com/vladmandic/sd-extension-system-info.git | main | b30e3245 | Fri Jun 23 16:17:07 2023 | unknown |
sd-model-organizer | https://github.com/alexandersokol/sd-model-organizer.git | main | dae3299b | Sat Jun 24 14:03:50 2023 | unknown |
sd-model-preview-xd | https://github.com/CurtisDS/sd-model-preview-xd | main | 3ed39cd0 | Tue May 23 00:52:25 2023 | unknown |
sd-webui-additional-networks | https://github.com/kohya-ss/sd-webui-additional-networks.git | main | e9f3d622 | Tue May 23 12:31:15 2023 | unknown |
sd-webui-aspect-ratio-helper | https://github.com/thomasasfk/sd-webui-aspect-ratio-helper.git | main | 99fcf9b0 | Sun Jun 4 15:39:07 2023 | unknown |
sd-webui-controlnet | https://github.com/Mikubill/sd-webui-controlnet.git | main | b9e09db3 | Mon Jul 3 04:30:20 2023 | unknown |
sd-webui-infinite-image-browsing | https://github.com/zanllp/sd-webui-infinite-image-browsing.git | main | 56b9c1d4 | Sat Jul 1 10:42:00 2023 | unknown |
sd-webui-photopea-embed | https://github.com/yankooliveira/sd-webui-photopea-embed | main | f3874a0c | Sat Jun 17 09:46:50 2023 | unknown |
sd-webui-roop | https://github.com/s0md3v/sd-webui-roop | main | ddc02ee1 | Sun Jun 25 03:26:53 2023 | unknown |
sd-webui-text2video | https://github.com/kabachuha/sd-webui-text2video.git | main | 3f4a109a | Mon Jul 3 09:05:18 2023 | unknown |
sd_dreambooth_extension | https://github.com/d8ahazard/sd_dreambooth_extension.git | main | dc413a14 | Tue Jun 6 04:21:36 2023 | unknown |
stable-diffusion-webui-aesthetic-image-scorer | https://github.com/tsngo/stable-diffusion-webui-aesthetic-image-scorer.git | main | 1c3ab7a1 | Sun Dec 11 05:52:39 2022 | unknown |
stable-diffusion-webui-rembg | https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg.git | master | 3d9eedbb | Sun Jun 4 13:35:24 2023 | unknown |
stable-diffusion-webui-tokenizer | https://github.com/AUTOMATIC1111/stable-diffusion-webui-tokenizer.git | master | ac6d541c | Sat Dec 10 12:58:31 2022 | unknown |
ultimate-upscale-for-automatic1111 | https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git | master | c99f382b | Tue Jun 13 04:29:35 2023 | unknown |
webui-qrcode-generator | https://github.com/missionfloyd/webui-qrcode-generator.git | master | 0a09d2f3 | Fri Jun 23 09:13:22 2023 | unknown |
Console logs
*** Error completing request
*** Arguments: ('task(caeqn837jlh0vav)', 'a robot, ', '', [], 20, 0, False, False, 1, 1, 7, -1.0, -1.0, 0, 0, 0, False, 512, 512, False, 0.7, 2, 'Latent', 0, 0, 0, 0, '', '', [], 3, False, True, False, 0, -1, True, False, 1, False, False, False, 1.1, 1.5, 100, 0.7, False, False, True, False, False, 0, 'Gustavosta/MagicPrompt-Stable-Diffusion', '', False, False, 'LoRA', 'None', 1, 1, 'LoRA', 'None', 1, 1, 'LoRA', 'None', 1, 1, 'LoRA', 'None', 1, 1, 'LoRA', 'None', 1, 1, None, 'Refresh models', <scripts.controlnet_ui.controlnet_ui_group.UiControlNetUnit object at 0x7fc9499c63e0>, <scripts.controlnet_ui.controlnet_ui_group.UiControlNetUnit object at 0x7fc949627c40>, <scripts.controlnet_ui.controlnet_ui_group.UiControlNetUnit object at 0x7fc9499c4340>, <PIL.Image.Image image mode=RGB size=512x512 at 0x7FC9499C7160>, True, '0', '/home/stav/stable-diffusion-webui/models/roop/inswapper_128.onnx', 'CodeFormer', 1, '', 1, 1, False, True, False, False, 'positive', 'comma', 0, False, False, '', 24, '', ['vae-ft-mse-840000-ema-pruned.safetensors'], 25, '', ['Manga'], 25, '', ['Space Hologram'], True, False, False, False, 0, 'Not set', True, True, '', '', '', '', '', 1.3, 'Not set', 'Not set', 1.3, 'Not set', 1.3, 'Not set', 1.3, 1.3, 'Not set', 1.3, 'Not set', 1.3, 'Not set', 1.3, 'Not set', 1.3, 'Not set', 1.3, 'Not set', False, 'None', None, None, False, None, None, False, None, None, False, 50) {}
Traceback (most recent call last):
File "/home/stav/stable-diffusion-webui/modules/call_queue.py", line 55, in f
res = list(func(*args, **kwargs))
File "/home/stav/stable-diffusion-webui/modules/call_queue.py", line 35, in f
res = func(*args, **kwargs)
File "/home/stav/stable-diffusion-webui/modules/txt2img.py", line 54, in txt2img
processed = modules.scripts.scripts_txt2img.run(p, *args)
File "/home/stav/stable-diffusion-webui/modules/scripts.py", line 456, in run
processed = script.run(p, *script_args)
TypeError: Script.run() missing 14 required positional arguments: 'x_type', 'x_values', 'x_values_dropdown', 'y_type', 'y_values', 'y_values_dropdown', 'z_type', 'z_values', 'z_values_dropdown', 'draw_legend', 'include_lone_images', 'include_sub_grids', 'no_fixed_seeds', and 'margin_size'
Additional information
No response
i have reinstalled and this issue not happening, probably i massed up something
The same happened to me. After reinstalling everything, it was SO SLOW and the quality of the images was way worse. I don't know what happened :(
Problem happened to me after updating to latest Automatic1111 (v1.4.0) on multiple installs. Only tested with X/Y/Z Plot scripts.
Same here
Edit: I downgraded to commit 5576a72 and it fixed the issue (I didn't tried later commits beside commit d5a5f2f which also had this issue).
Same here
Edit: I downgraded to commit 5576a72 and it fixed the issue (I didn't tried later commits beside commit d5a5f2f which also had this issue).
git checkout and the number of the commit?
same problem, Is there any good way to solve it?
I downloaded only the script and it still didn't work properly. I noticed downloading the cfg rescale extension somehow broke the software. I went down a rabbit hole of versions of everything and now it is worst than I first started, but better than what it became ahahha The battle goes on
Em dom., 9 de jul. de 2023 às 09:34, U·DI @.***> escreveu:
same problem, Is there any good way to solve it?
— Reply to this email directly, view it on GitHub https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/11599#issuecomment-1627647544, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQXED27K6ZGJXMXHJ7I4TCTXPJUH5ANCNFSM6AAAAAAZ4OTZCY . You are receiving this because you commented.Message ID: @.***>
I am having the exact same issue after upgrading to 1.4.1. It happens with every script regardless of which one.
- try disabling SD-CN-Animation extension
- if this doesn't help try disabling all other extensions one after another
Mov2mov extension also creates same problem for me. Try removing extensions one after another as zven73 said. You can try starting with ones that weren't updated for quite some time.
Please refer to this issue. I have found the cause of this issue and a possible fix, which is related to stable-diffusion-webui\modules\scripts.py
.
https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/11448#issuecomment-1637127714
mov2mov was the last extension I downloaded before everything crashed, even after deleting it. Makes sense
Em dom., 16 de jul. de 2023 às 17:13, avan06 @.***> escreveu:
Please refer to this issue. I have found the cause of this issue and a possible fix, which is related to stable-diffusion-webui\modules\scripts.py.
#11448 (comment) https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/11448#issuecomment-1637127714
— Reply to this email directly, view it on GitHub https://github.com/AUTOMATIC1111/stable-diffusion-webui/issues/11599#issuecomment-1637129979, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQXED24TDYWASUA6RXHXAKLXQQHKXANCNFSM6AAAAAAZ4OTZCY . You are receiving this because you commented.Message ID: @.***>
Just disable SD-CN extension and it will work fine. at least that's my case
It's up to the extension authors to maintain compatibility with older/newer versions. This is not a webui issue. Open an issue in the respective extension repos if the problem persists.
I uninstalled SD CN Animation Extension >> Restart >> It works again. I'm using lastest version of all extensions and Auto1111 (1.5.2)
I'm using the 1.6.0 and had to disable SD-CN Animation :)
- try disabling SD-CN-Animation extension
- if this doesn't help try disabling all other extensions one after another
SD-CN-Animation was my culprit, thanks!