AUTOMATIC1111 / stable-diffusion-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
141.56k stars 26.75k forks source link

[Bug]: Scripts not working, TypeError: Script.run() missing X required positional arguments #11599

Closed stavsap closed 1 year ago

stavsap commented 1 year ago

Is there an existing issue for this?

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

  1. Select any script
  2. Try to run
  3. .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 PBRemTools https://github.com/mattyamonaca/PBRemTools.git main [d0fee2a8](https://github.com/mattyamonaca/PBRemTools/commit/d0fee2a81dd4b656002873493bc27a5312df2187) Thu Jun 29 14:08:23 2023 unknown SD-CN-Animation https://github.com/volotat/SD-CN-Animation.git main [2e257bbf](https://github.com/volotat/SD-CN-Animation/commit/2e257bbfc3b76fb1323f7b22f820981c1b9f56b2) Tue May 30 16:49:03 2023 unknown SadTalker https://github.com/OpenTalker/SadTalker main [ae0b2635](https://github.com/OpenTalker/SadTalker/commit/ae0b26359d44c9379450a8e02a38b45eeec15549) 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](https://github.com/butaixianran/Stable-Diffusion-Webui-Civitai-Helper/commit/920ca3267f789a72e3225c99f069bf0be0db795d) Tue May 23 11:53:22 2023 unknown StylePile https://github.com/some9000/StylePile.git main [85b549a1](https://github.com/some9000/StylePile/commit/85b549a10ff6c5b1604e980cd2107253b088e832) Thu Apr 13 18:42:34 2023 unknown TemporalKit https://github.com/CiaraStrawberry/TemporalKit main [504774d9](https://github.com/CiaraStrawberry/TemporalKit/commit/504774d999861ca9d711ece91c78bf9eff5d312f) Sun May 7 21:37:21 2023 unknown a1111-sd-webui-tagcomplete https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git main [7f188563](https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/commit/7f18856321797fb62d1450c7c2a9b7376df7d760) Sun Jun 25 10:34:57 2023 unknown asymmetric-tiling-sd-webui https://github.com/tjm35/asymmetric-tiling-sd-webui.git main [b4470ddc](https://github.com/tjm35/asymmetric-tiling-sd-webui/commit/b4470ddc388a94fe4c2384606fa9810eb7aa7529) Fri Nov 18 17:42:54 2022 unknown clip-interrogator-ext https://github.com/pharmapsychotic/clip-interrogator-ext.git main [c0bf9005](https://github.com/pharmapsychotic/clip-interrogator-ext/commit/c0bf90052a14a104b2dbfd9b7e7818aae5ca5ae1) 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](https://github.com/deforum-art/deforum-for-automatic1111-webui/commit/858c4dd6fd030449c23882724c67ee9398b4fd05) Sun Jul 2 16:52:11 2023 unknown gif2gif https://github.com/LonicaMewinsky/gif2gif.git main [5121851e](https://github.com/LonicaMewinsky/gif2gif/commit/5121851e3941c420253f3a20a0f8e49bed86f0bb) Sat May 13 14:56:04 2023 unknown infinite-zoom-automatic1111-webui https://github.com/v8hid/infinite-zoom-automatic1111-webui.git main [1139764b](https://github.com/v8hid/infinite-zoom-automatic1111-webui/commit/1139764bf715d848dc5b8b4c8d95e2e734c7e4eb) Wed May 3 17:08:52 2023 unknown sd-dynamic-prompts https://github.com/adieyal/sd-dynamic-prompts.git main [525ee62a](https://github.com/adieyal/sd-dynamic-prompts/commit/525ee62a9a1ce308a8ae932883be0f4f264282c4) Mon Jun 19 09:23:10 2023 unknown sd-extension-system-info https://github.com/vladmandic/sd-extension-system-info.git main [b30e3245](https://github.com/vladmandic/sd-extension-system-info/commit/b30e324552517e68012f2487cf7b0be43616a4cc) Fri Jun 23 16:17:07 2023 unknown sd-model-organizer https://github.com/alexandersokol/sd-model-organizer.git main [dae3299b](https://github.com/alexandersokol/sd-model-organizer/commit/dae3299b2cb902873db78615b76bf28d4cfbd4e0) Sat Jun 24 14:03:50 2023 unknown sd-model-preview-xd https://github.com/CurtisDS/sd-model-preview-xd main [3ed39cd0](https://github.com/CurtisDS/sd-model-preview-xd/commit/3ed39cd0f6c20f4212e29141501e710ef91383af) Tue May 23 00:52:25 2023 unknown sd-webui-additional-networks https://github.com/kohya-ss/sd-webui-additional-networks.git main [e9f3d622](https://github.com/kohya-ss/sd-webui-additional-networks/commit/e9f3d622b5a98650008a685ea23b27eb810da35a) 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](https://github.com/thomasasfk/sd-webui-aspect-ratio-helper/commit/99fcf9b0a4e3f8c8cac07b12d17b66f12297b828) Sun Jun 4 15:39:07 2023 unknown sd-webui-controlnet https://github.com/Mikubill/sd-webui-controlnet.git main [b9e09db3](https://github.com/Mikubill/sd-webui-controlnet/commit/b9e09db324e4bf18d3a107fa4bfda501aaf3f6b5) 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](https://github.com/zanllp/sd-webui-infinite-image-browsing/commit/56b9c1d49c5c538606bc0acac63b35ea724362f1) Sat Jul 1 10:42:00 2023 unknown sd-webui-photopea-embed https://github.com/yankooliveira/sd-webui-photopea-embed main [f3874a0c](https://github.com/yankooliveira/sd-webui-photopea-embed/commit/f3874a0c7b416553aa042e607511ffedf075e5b4) Sat Jun 17 09:46:50 2023 unknown sd-webui-roop https://github.com/s0md3v/sd-webui-roop main [ddc02ee1](https://github.com/s0md3v/sd-webui-roop/commit/ddc02ee1a914ba387fa338f9542ec16d128c56e5) Sun Jun 25 03:26:53 2023 unknown sd-webui-text2video https://github.com/kabachuha/sd-webui-text2video.git main [3f4a109a](https://github.com/kabachuha/sd-webui-text2video/commit/3f4a109a69599d8d2209c60b966d1cf9ea946239) Mon Jul 3 09:05:18 2023 unknown sd_dreambooth_extension https://github.com/d8ahazard/sd_dreambooth_extension.git main [dc413a14](https://github.com/d8ahazard/sd_dreambooth_extension/commit/dc413a14379b165355502d9f65856c40a4bb5b6f) 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](https://github.com/tsngo/stable-diffusion-webui-aesthetic-image-scorer/commit/1c3ab7a116ab5bc3b81d718e6383edd98903a01f) Sun Dec 11 05:52:39 2022 unknown stable-diffusion-webui-rembg https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg.git master [3d9eedbb](https://github.com/AUTOMATIC1111/stable-diffusion-webui-rembg/commit/3d9eedbbf0d585207f97d5b21e42f32c0042df70) Sun Jun 4 13:35:24 2023 unknown stable-diffusion-webui-tokenizer https://github.com/AUTOMATIC1111/stable-diffusion-webui-tokenizer.git master [ac6d541c](https://github.com/AUTOMATIC1111/stable-diffusion-webui-tokenizer/commit/ac6d541c7032e9f9c69c8ead2ed201302b06a4fe) Sat Dec 10 12:58:31 2022 unknown ultimate-upscale-for-automatic1111 https://github.com/Coyote-A/ultimate-upscale-for-automatic1111.git master [c99f382b](https://github.com/Coyote-A/ultimate-upscale-for-automatic1111/commit/c99f382b31509b87b4d512e70e9caf08ae7a079f) Tue Jun 13 04:29:35 2023 unknown webui-qrcode-generator https://github.com/missionfloyd/webui-qrcode-generator.git master [0a09d2f3](https://github.com/missionfloyd/webui-qrcode-generator/commit/0a09d2f3d36c199ef3b2cf4e1babc5217be50b80) Fri Jun 23 09:13:22 2023 unknown ### Console logs ```Shell *** 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', , , , , 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_
stavsap commented 1 year ago

i have reinstalled and this issue not happening, probably i massed up something

PsychoGarlic commented 1 year ago

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 :(

waynoedm commented 1 year ago

Problem happened to me after updating to latest Automatic1111 (v1.4.0) on multiple installs. Only tested with X/Y/Z Plot scripts.

HanJammer commented 1 year ago

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).

PsychoGarlic commented 1 year ago

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?

U-DI-Page commented 1 year ago

same problem, Is there any good way to solve it?

PsychoGarlic commented 1 year ago

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: @.***>

splaztastic commented 1 year ago

I am having the exact same issue after upgrading to 1.4.1. It happens with every script regardless of which one.

zven73 commented 1 year ago
  1. try disabling SD-CN-Animation extension
  2. if this doesn't help try disabling all other extensions one after another
Bellatrixie commented 1 year ago

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.

avan06 commented 1 year ago

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

PsychoGarlic commented 1 year ago

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: @.***>

simosokerov commented 1 year ago

Just disable SD-CN extension and it will work fine. at least that's my case

catboxanon commented 1 year ago

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.

le-khang commented 1 year ago

I uninstalled SD CN Animation Extension >> Restart >> It works again. I'm using lastest version of all extensions and Auto1111 (1.5.2)

rdstuff commented 1 year ago

I'm using the 1.6.0 and had to disable SD-CN Animation :)

DuckersMcQuack commented 1 year ago
  1. try disabling SD-CN-Animation extension
  2. if this doesn't help try disabling all other extensions one after another

SD-CN-Animation was my culprit, thanks!