stable-diffusion-webui icon indicating copy to clipboard operation
stable-diffusion-webui copied to clipboard

[Bug]: multipel issues in img2img Batch fuction

Open werran2 opened this issue 1 year ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues and checked the recent builds/commits

What happened?

  1. img2img Batch fuction do not load VAE model
  2. if use "scale by" with Batch fuction , console shows "AssertionError: Can't scale by because no image is selected"

Steps to reproduce the problem

  1. Go to ....
  2. Press ....
  3. ...

What should have happened?

as it should work...

Commit where the problem happens

commit: 5ab7f213

What platforms do you use to access the UI ?

Windows

What browsers do you use to access the UI ?

Google Chrome

Command Line Arguments

no

List of extensions

a1111-sd-webui-locon https://jihulab.com/hunter0725/a1111-sd-webui-locon 658c4f77 (Sun May 21 11:15:35 2023) unknown
a1111-sd-webui-lycoris https://gitcode.net/ranting8323/a1111-sd-webui-lycoris b0d24ca6 (Wed May 17 00:19:32 2023) unknown
a1111-sd-webui-tagcomplete https://gitcode.net/ranting8323/a1111-sd-webui-tagcomplete 69975587 (Sun May 21 11:54:38 2023) unknown
multidiffusion-upscaler-for-automatic1111 https://gitcode.net/ranting8323/multidiffusion-upscaler-for-automatic1111.git 23f3a144 (Tue May 9 13:29:40 2023) unknown
sd-dynamic-thresholding https://proxy.zyun.vip/https://github.com/mcmonkeyprojects/sd-dynamic-thresholding.git 8f18058b (Mon Mar 27 19:50:18 2023) unknown
sd-extension-system-info https://hub.fgit.ml/vladmandic/sd-extension-system-info 79243697 (Thu May 18 11:01:58 2023) unknown
sd-face-editor https://github.com/ototadana/sd-face-editor 6d702906 (Sun May 21 13:12:42 2023) unknown
sd-webui-additional-networks https://gitcode.net/ranting8323/sd-webui-additional-networks.git 2da46478 (Fri May 12 12:28:25 2023) unknown
sd-webui-controlnet https://gitcode.net/ranting8323/sd-webui-controlnet.git 06515a66 (Sun May 21 19:15:36 2023) unknown
sd-webui-images-browser https://jihulab.com/Akegarasu/sd-webui-images-browser c615bb02 (Fri Jan 27 13:12:23 2023) unknown
sd-webui-model-converter https://gitcode.net/ranting8323/sd-webui-model-converter d19e2816 (Sun Mar 26 06:36:49 2023) unknown
sd-webui-tome https://git.mmaker.moe/mmaker/sd-webui-tome d3b8b782 (Mon Apr 3 22:29:38 2023) unknown
sd_smartprocess https://ghproxy.com/https://github.com/d8ahazard/sd_smartprocess.git 41fb35ef (Sun Jan 22 17:30:02 2023) unknown
stable-diffusion-webui-composable-lora https://ghproxy.com/https://github.com/opparco/stable-diffusion-webui-composable-lora.git d4963e48 (Mon Feb 27 17:40:08 2023) unknown
stable-diffusion-webui-localization-zh_CN https://gitcode.net/ranting8323/stable-diffusion-webui-localization-zh_CN 582ca24d (Thu Mar 30 07:06:14 2023) unknown
stable-diffusion-webui-two-shot https://gitcode.net/ranting8323/stable-diffusion-webui-two-shot 9936c52e (Sun Feb 19 08:40:41 2023) unknown
stable-diffusion-webui-wd14-tagger https://gitcode.net/ranting8323/stable-diffusion-webui-wd14-tagger 3ba3a735 (Sat Mar 25 20:32:37 2023) unknown
stable-diffusion-webui-wildcards https://github.com/sdbds/stable-diffusion-webui-wildcards 933f2064 (Sat May 20 08:27:03 2023) unknown
a1111-sd-webui-locon https://jihulab.com/hunter0725/a1111-sd-webui-locon 658c4f77 (Sun May 21 11:15:35 2023) unknown a1111-sd-webui-lycoris https://gitcode.net/ranting8323/a1111-sd-webui-lycoris b0d24ca6 (Wed May 17 00:19:32 2023) unknown a1111-sd-webui-tagcomplete https://gitcode.net/ranting8323/a1111-sd-webui-tagcomplete 69975587 (Sun May 21 11:54:38 2023) unknown multidiffusion-upscaler-for-automatic1111 https://gitcode.net/ranting8323/multidiffusion-upscaler-for-automatic1111.git 23f3a144 (Tue May 9 13:29:40 2023) unknown sd-dynamic-thresholding https://proxy.zyun.vip/https://github.com/mcmonkeyprojects/sd-dynamic-thresholding.git 8f18058b (Mon Mar 27 19:50:18 2023) unknown sd-extension-system-info https://hub.fgit.ml/vladmandic/sd-extension-system-info 79243697 (Thu May 18 11:01:58 2023) unknown sd-face-editor https://github.com/ototadana/sd-face-editor [6d702906 (Sun May 21 13:12:42 2023)](https://github.com/ototadana/sd-face-editor/commit/6d7029061d276872e673fbfc86e022c1c77150e1) unknown sd-webui-additional-networks https://gitcode.net/ranting8323/sd-webui-additional-networks.git 2da46478 (Fri May 12 12:28:25 2023) unknown sd-webui-controlnet https://gitcode.net/ranting8323/sd-webui-controlnet.git 06515a66 (Sun May 21 19:15:36 2023) unknown sd-webui-images-browser https://jihulab.com/Akegarasu/sd-webui-images-browser c615bb02 (Fri Jan 27 13:12:23 2023) unknown sd-webui-model-converter https://gitcode.net/ranting8323/sd-webui-model-converter d19e2816 (Sun Mar 26 06:36:49 2023) unknown sd-webui-tome https://git.mmaker.moe/mmaker/sd-webui-tome d3b8b782 (Mon Apr 3 22:29:38 2023) unknown sd_smartprocess https://ghproxy.com/https://github.com/d8ahazard/sd_smartprocess.git 41fb35ef (Sun Jan 22 17:30:02 2023) unknown stable-diffusion-webui-composable-lora https://ghproxy.com/https://github.com/opparco/stable-diffusion-webui-composable-lora.git d4963e48 (Mon Feb 27 17:40:08 2023) unknown stable-diffusion-webui-localization-zh_CN https://gitcode.net/ranting8323/stable-diffusion-webui-localization-zh_CN 582ca24d (Thu Mar 30 07:06:14 2023) unknown stable-diffusion-webui-two-shot https://gitcode.net/ranting8323/stable-diffusion-webui-two-shot 9936c52e (Sun Feb 19 08:40:41 2023) unknown stable-diffusion-webui-wd14-tagger https://gitcode.net/ranting8323/stable-diffusion-webui-wd14-tagger 3ba3a735 (Sat Mar 25 20:32:37 2023) unknown stable-diffusion-webui-wildcards https://github.com/sdbds/stable-diffusion-webui-wildcards [933f2064 (Sat May 20 08:27:03 2023)](https://github.com/sdbds/stable-diffusion-webui-wildcards/commit/933f20649d1cebb497c7d85c1b71950f7b79708e) unknown

Console logs

Error completing request
Arguments: ('task(ezsjpaogkmn6c8h)', 5, '', '', [], None, None, None, None, None, None, None, 20, 0, 4, 0, 1, False, False, 1, 1, 7, 1.5, 0.75, -1.0, -1.0, 0, 0, 0, False, 1, 512, 512, 1, 0, 0, 32, 0, 'D:\\DeepFaceLab\\DeepFaceLab_NV20_1120_CN\\workspace\\data_dst', '', '', [], 0, False, 'MultiDiffusion', False, True, 1024, 1024, 96, 96, 48, 1, 'None', 2, False, 10, 1, 1, 64, False, False, False, False, False, 0.4, 0.4, 0.2, 0.2, '', '', 'Background', 0.2, -1.0, False, 0.4, 0.4, 0.2, 0.2, '', '', 'Background', 0.2, -1.0, False, 0.4, 0.4, 0.2, 0.2, '', '', 'Background', 0.2, -1.0, False, 0.4, 0.4, 0.2, 0.2, '', '', 'Background', 0.2, -1.0, False, 0.4, 0.4, 0.2, 0.2, '', '', 'Background', 0.2, -1.0, False, 0.4, 0.4, 0.2, 0.2, '', '', 'Background', 0.2, -1.0, False, 0.4, 0.4, 0.2, 0.2, '', '', 'Background', 0.2, -1.0, False, 0.4, 0.4, 0.2, 0.2, '', '', 'Background', 0.2, -1.0, False, 1536, 96, True, True, True, False, False, 7, 100, 'Constant', 0, 'Constant', 0, 4, False, 1.6, 0.97, 0.4, 0, 20, 0, 0, '', True, False, False, False, 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', <controlnet.py.UiControlNetUnit object at 0x000002AB9369B220>, False, False, False, False, '1:1,1:2,1:2', '0:0,0:0,0:1', '0.2,0.8,0.8', 20, '<ul>\n<li><code>CFG Scale</code> should be 2 or lower.</li>\n</ul>\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 0.5, 'Linear', 'None', '<p style="margin-bottom:0.75em">Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8</p>', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, 'positive', 'comma', 0, False, False, '', '<p style="margin-bottom:0.75em">Will upscale the image by the selected scale factor; use width and height sliders to set tile size</p>', 64, 0, 2, 1, '', [], 0, '', [], 0, '', [], True, False, False, False, 0, 1.6, 0.97, 0.4, 0, 20, 0, 0, '', True, False, False, False, None, False, 50) {}
Traceback (most recent call last):
  File "C:\novelai-webui-aki-v3\modules\call_queue.py", line 57, in f
    res = list(func(*args, **kwargs))
  File "C:\novelai-webui-aki-v3\modules\call_queue.py", line 37, in f
    res = func(*args, **kwargs)
  File "C:\novelai-webui-aki-v3\modules\img2img.py", line 121, in img2img
    assert image, "Can't scale by because no image is selected"
AssertionError: Can't scale by because no image is selected

Additional information

No response

werran2 avatar May 21 '23 21:05 werran2

Yeah - came here to check and glad someone else agrees this is a bug. Batch mode with scale should surely just scale the dimensions of each image loaded in the batch? eg. so you can run a batch of a folder with various dimensions and retain (1x) or upscale each image separately.

gobshyte avatar May 27 '23 21:05 gobshyte

Yeah - came here to check and glad someone else agrees this is a bug. Batch mode with scale should surely just scale the dimensions of each image loaded in the batch? eg. so you can run a batch of a folder with various dimensions and retain (1x) or upscale each image separately.

fix by https://github.com/AUTOMATIC1111/stable-diffusion-webui/pull/10838

werran2 avatar May 30 '23 21:05 werran2

Closing since this is apparently fixed.

akx avatar Jun 05 '23 20:06 akx