[1.1.222] I can't use 'Ultimate SD upscale' anymore #1602
Replies: 3 comments 2 replies
-
cannot reproduce. ultimate_sd_upscale is tested and works very well |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hello,
thanks for your quick reply.
Il giorno ven 9 giu 2023 alle ore 10:20 lllyasviel ***@***.***>
ha scritto:
cannot reproduce. ultimate_sd_upscale is tested and works very well
Good to know, so it's probably my fault. But I am just following the exact
steps I always did.
can you provide detailed screenshots of all settings to trigger the
problem?
Yep, see 'em in attachment
Besides, your log looks like you are mixing the use of ultimate_sd_upscale
and tiled diffusion?
I can assure it's unintentional. :-)
Should I avoid to do anything to make it work as it should?
Thank you so much for your time.
…--
*p.bes*
Senior IT specialist, journalist, advisor
<http://www.thegamesmachine.it> <http://www.zzapmagazine.it/>
<http://www.commodorecompany.com> <http://www.icarosdesktop.org>
<https://www.linkedin.com/in/paolo-besser-05675243/>
2023-06-09 11:43:07,094 - ControlNet - INFO - Preview Resolution = 512
Canva size: 2048x2048
Image size: 512x512
Scale factor: 4
Upscaling iteration 1 with scale factor 4
Tile size: 512x512
Tiles amount: 16
Grid: 4x4
Redraw enabled: True
Seams fix mode: NONE
2023-06-09 11:44:21,372 - ControlNet - INFO - Loading model: control_v11f1e_sd15_tile [a371b31b]
2023-06-09 11:44:22,175 - ControlNet - INFO - Loaded state_dict from [D:\automatic1111\webui\extensions\sd-webui-controlnet\models\control_v11f1e_sd15_tile.pth]
2023-06-09 11:44:22,176 - ControlNet - INFO - Loading config: D:\automatic1111\webui\extensions\sd-webui-controlnet\models\control_v11f1e_sd15_tile.yaml
2023-06-09 11:44:24,247 - ControlNet - INFO - ControlNet model control_v11f1e_sd15_tile [a371b31b] loaded.
2023-06-09 11:44:36,813 - ControlNet - INFO - Loading preprocessor: tile_resample
2023-06-09 11:44:36,813 - ControlNet - INFO - Pixel Perfect Computation:
2023-06-09 11:44:36,813 - ControlNet - INFO - resize_mode = ResizeMode.INNER_FIT
2023-06-09 11:44:36,813 - ControlNet - INFO - raw_H = 576
2023-06-09 11:44:36,813 - ControlNet - INFO - raw_W = 576
2023-06-09 11:44:36,814 - ControlNet - INFO - target_H = 576
2023-06-09 11:44:36,814 - ControlNet - INFO - target_W = 576
2023-06-09 11:44:36,814 - ControlNet - INFO - estimation = 576.0
2023-06-09 11:44:36,814 - ControlNet - INFO - preprocessor resolution = 576
100%|████████████████████████████████████████████████████████████████████████████████████| 7/7 [00:06<00:00, 1.16it/s]
2023-06-09 11:44:47,054 - ControlNet - INFO - Loading model from cache: control_v11f1e_sd15_tile [a371b31b], 1.39it/s]
2023-06-09 11:44:47,202 - ControlNet - INFO - Loading preprocessor: tile_resample
2023-06-09 11:44:47,202 - ControlNet - INFO - Pixel Perfect Computation:
2023-06-09 11:44:47,202 - ControlNet - INFO - resize_mode = ResizeMode.INNER_FIT
2023-06-09 11:44:47,202 - ControlNet - INFO - raw_H = 576
2023-06-09 11:44:47,203 - ControlNet - INFO - raw_W = 576
2023-06-09 11:44:47,203 - ControlNet - INFO - target_H = 576
2023-06-09 11:44:47,203 - ControlNet - INFO - target_W = 576
2023-06-09 11:44:47,203 - ControlNet - INFO - estimation = 576.0
2023-06-09 11:44:47,203 - ControlNet - INFO - preprocessor resolution = 576
100%|████████████████████████████████████████████████████████████████████████████████████| 7/7 [00:05<00:00, 1.25it/s]
Error completing request█████▏ | 14/112 [00:11<01:19, 1.23it/s]
Arguments: ('task(1vbf00wbx25v5lo)', 0, 'a cartoon girl with green hair and green dress posing for a picture with a star in the background and a green hat on her head, Cicely Hey, green, an anime drawing, lyco art', '', [], <PIL.Image.Image image mode=RGBA size=512x512 at 0x1B64E7E0130>, None, None, None, None, None, None, 20, 0, 4, 0, 1, False, False, 1, 1, 7, 1.5, 0.3, -1.0, -1.0, 0, 0, 0, False, 0, 512, 512, 1, 0, 0, 32, 0, '', '', '', [], 10, False, 'MultiDiffusion', False, True, 1024, 1024, 96, 96, 48, 4, '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, '', 0, <scripts.controlnet_ui.controlnet_ui_group.UiControlNetUnit object at 0x000001B6978726E0>, '<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, None, None, False, 50, '<p style="margin-bottom:0.75em">Will upscale the image depending on the selected target size type</p>', 512, 0, 8, 32, 64, 0.35, 32, 3, True, 0, False, 8, 0, 2, 2048, 2048, 4) {}
Traceback (most recent call last):
File "D:\automatic1111\webui\modules\call_queue.py", line 57, in f
res = list(func(*args, **kwargs))
File "D:\automatic1111\webui\modules\call_queue.py", line 37, in f
res = func(*args, **kwargs)
File "D:\automatic1111\webui\modules\img2img.py", line 176, in img2img
processed = modules.scripts.scripts_img2img.run(p, *args)
File "D:\automatic1111\webui\modules\scripts.py", line 441, in run
processed = script.run(p, *script_args)
File "D:\automatic1111\webui\extensions\ultimate-upscale-for-automatic1111\scripts\ultimate-upscale.py", line 553, in run
upscaler.process()
File "D:\automatic1111\webui\extensions\ultimate-upscale-for-automatic1111\scripts\ultimate-upscale.py", line 136, in process
self.image = self.redraw.start(self.p, self.image, self.rows, self.cols)
File "D:\automatic1111\webui\extensions\ultimate-upscale-for-automatic1111\scripts\ultimate-upscale.py", line 243, in start
return self.linear_process(p, image, rows, cols)
File "D:\automatic1111\webui\extensions\ultimate-upscale-for-automatic1111\scripts\ultimate-upscale.py", line 178, in linear_process
processed = processing.process_images(p)
File "D:\automatic1111\webui\modules\processing.py", line 610, in process_images
res = process_images_inner(p)
File "D:\automatic1111\webui\extensions\sd-webui-controlnet\scripts\batch_hijack.py", line 42, in processing_process_images_hijack
return getattr(processing, '__controlnet_original_process_images_inner')(p, *args, **kwargs)
File "D:\automatic1111\webui\modules\processing.py", line 775, in process_images_inner
image = apply_overlay(image, p.paste_to, i, p.overlay_images)
File "D:\automatic1111\webui\modules\processing.py", line 70, in apply_overlay
image = images.resize_image(1, image, w, h)
File "D:\automatic1111\webui\modules\images.py", line 288, in resize_image
resized = resize(im, src_w, src_h)
File "D:\automatic1111\webui\modules\images.py", line 271, in resize
im = upscaler.scaler.upscale(im, scale, upscaler.data_path)
File "D:\automatic1111\webui\modules\upscaler.py", line 62, in upscale
img = self.do_upscale(img, selected_model)
File "D:\automatic1111\webui\modules\esrgan_model.py", line 150, in do_upscale
img = esrgan_upscale(model, img)
File "D:\automatic1111\webui\modules\esrgan_model.py", line 224, in esrgan_upscale
output = upscale_without_tiling(model, tile)
File "D:\automatic1111\webui\modules\esrgan_model.py", line 203, in upscale_without_tiling
output = model(img)
File "D:\automatic1111\system\python\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "D:\automatic1111\webui\modules\esrgan_model_arch.py", line 61, in forward
return self.model(feat)
File "D:\automatic1111\system\python\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "D:\automatic1111\system\python\lib\site-packages\torch\nn\modules\container.py", line 217, in forward
input = module(input)
File "D:\automatic1111\system\python\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*args, **kwargs)
File "D:\automatic1111\webui\extensions-builtin\Lora\lora.py", line 415, in lora_Conv2d_forward
return torch.nn.Conv2d_forward_before_lora(self, input)
File "D:\automatic1111\webui\extensions\a1111-sd-webui-lycoris\lycoris.py", line 753, in lyco_Conv2d_forward
return torch.nn.Conv2d_forward_before_lyco(self, input)
File "D:\automatic1111\system\python\lib\site-packages\torch\nn\modules\conv.py", line 463, in forward
return self._conv_forward(input, self.weight, self.bias)
File "D:\automatic1111\system\python\lib\site-packages\torch\nn\modules\conv.py", line 459, in _conv_forward
return F.conv2d(input, weight, bias, self.stride,
RuntimeError: Given groups=1, weight of size [64, 3, 3, 3], expected input[1, 4, 192, 192] to have 3 channels, but got 4 channels instead
|
Beta Was this translation helpful? Give feedback.
1 reply
-
If this might help.
I have installed automatic1111 from scratch on another computer in the
meantime, and with a fresh installation it works again like a charm.
My guess is that when updating extensions, something in the main 'program'
remains unchanged, while extensions need that part updated as well.
Il giorno gio 22 giu 2023 alle ore 22:31 Kallamamran <
***@***.***> ha scritto:
… If it's your fault, it also mine... I have the exact same problem. The
EXACT same problem :/
—
Reply to this email directly, view it on GitHub
<#1602 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALJZEBHTKRQBO3C4CIMUY7LXMSTRRANCNFSM6AAAAAAZAJLNPQ>
.
You are receiving this because you authored the thread.Message ID:
<Mikubill/sd-webui-controlnet/repo-discussions/1602/comments/6255991@
github.com>
--
*p.bes*
Senior IT specialist, journalist, advisor
<http://www.thegamesmachine.it> <http://www.zzapmagazine.it/>
<http://www.commodorecompany.com> <http://www.icarosdesktop.org>
<https://www.linkedin.com/in/paolo-besser-05675243/>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi. Yesterday (jun 08th, 2023) I decided to check for A1111 extensions updates and something went terribly wrong. It broke both Dreambooth (but I can live without it) and affected ControlNet's ability to upscale images using the script above (which is more important to me). Every time I try to upscale an image, no matter the image size, no matter the upscaler I choose, no matter the tile size, at the third step the script fails with this error:
RuntimeError: Given groups=1, weight of size [64, 3, 3, 3], expected input[1, 4, 192, 192] to have 3 channels, but got 4 channels instead
I have removed Dreambooth at all, I have removed ControlNet as well, I downloaded ControlNet from scratch and then added all models again. I have also git updated the whole A1111 and started it with no parameters (even no xformers), including downloading Ultimate SD Upscale (https://github.com/Coyote-A/ultimate-upscale-for-automatic1111) again. Nothing fixed the issue. I am running SD on Windows 11, 64 bit and it used to work like a charm.
Here is the log on the console when the error occurs:
100%|████████████████████████████████████████████████████████████████████████████████████| 7/7 [00:01<00:00, 5.35it/s]
Error completing request█████▏ | 14/112 [00:03<00:20, 4.78it/s]
Arguments: ('task(kw82gfwzo5ksp6o)', 0, '', '', [], <PIL.Image.Image image mode=RGBA size=512x512 at 0x21FCA5418D0>, None, None, None, None, None, None, 20, 0, 4, 0, 1, False, False, 1, 1, 7, 1.5, 0.33, -1.0, -1.0, 0, 0, 0, False, 0, 512, 512, 1, 0, 0, 32, 0, '', '', '', [], 10, False, 'MultiDiffusion', False, True, 1024, 1024, 96, 96, 48, 4, '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, '', 0, <scripts.controlnet_ui.controlnet_ui_group.UiControlNetUnit object at 0x0000021FCE569450>, '
\n \n
\n', True, True, '', '', True, 50, True, 1, 0, False, 4, 0.5, 'Linear', 'None', 'CFG Scale
should be 2 or lower.Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8
', 128, 8, ['left', 'right', 'up', 'down'], 1, 0.05, 128, 4, 0, ['left', 'right', 'up', 'down'], False, False, 'positive', 'comma', 0, False, False, '', 'Will upscale the image by the selected scale factor; use width and height sliders to set tile size
', 64, 0, 2, 1, '', [], 0, '', [], 0, '', [], True, False, False, False, 0, None, None, False, 50, 'Will upscale the image depending on the selected target size type
', 512, 0, 8, 32, 64, 0.35, 32, 3, True, 0, False, 8, 0, 2, 2048, 2048, 4) {}Traceback (most recent call last):
File "D:\automatic1111\webui\modules\call_queue.py", line 57, in f
res = list(func(*args, **kwargs))
File "D:\automatic1111\webui\modules\call_queue.py", line 37, in f
res = func(*args, **kwargs)
File "D:\automatic1111\webui\modules\img2img.py", line 176, in img2img
processed = modules.scripts.scripts_img2img.run(p, *args)
File "D:\automatic1111\webui\modules\scripts.py", line 441, in run
processed = script.run(p, *script_args)
File "D:\automatic1111\webui\extensions\ultimate-upscale-for-automatic1111\scripts\ultimate-upscale.py", line 553, in run
upscaler.process()
File "D:\automatic1111\webui\extensions\ultimate-upscale-for-automatic1111\scripts\ultimate-upscale.py", line 136, in process
self.image = self.redraw.start(self.p, self.image, self.rows, self.cols)
File "D:\automatic1111\webui\extensions\ultimate-upscale-for-automatic1111\scripts\ultimate-upscale.py", line 243, in start
return self.linear_process(p, image, rows, cols)
File "D:\automatic1111\webui\extensions\ultimate-upscale-for-automatic1111\scripts\ultimate-upscale.py", line 178, in linear_process
processed = processing.process_images(p)
File "D:\automatic1111\webui\modules\processing.py", line 610, in process_images
res = process_images_inner(p)
File "D:\automatic1111\webui\extensions\sd-webui-controlnet\scripts\batch_hijack.py", line 42, in processing_process_images_hijack
return getattr(processing, '__controlnet_original_process_images_inner')(p, *args, **kwargs)
File "D:\automatic1111\webui\modules\processing.py", line 775, in process_images_inner
image = apply_overlay(image, p.paste_to, i, p.overlay_images)
File "D:\automatic1111\webui\modules\processing.py", line 70, in apply_overlay
image = images.resize_image(1, image, w, h)
File "D:\automatic1111\webui\modules\images.py", line 288, in resize_image
resized = resize(im, src_w, src_h)
File "D:\automatic1111\webui\modules\images.py", line 271, in resize
im = upscaler.scaler.upscale(im, scale, upscaler.data_path)
File "D:\automatic1111\webui\modules\upscaler.py", line 62, in upscale
img = self.do_upscale(img, selected_model)
File "D:\automatic1111\webui\modules\esrgan_model.py", line 150, in do_upscale
img = esrgan_upscale(model, img)
File "D:\automatic1111\webui\modules\esrgan_model.py", line 224, in esrgan_upscale
output = upscale_without_tiling(model, tile)
File "D:\automatic1111\webui\modules\esrgan_model.py", line 203, in upscale_without_tiling
output = model(img)
File "D:\automatic1111\system\python\lib\site-packages\torch\nn\modules\module.py", line 1501, in _call_impl
return forward_call(*a
Beta Was this translation helpful? Give feedback.
All reactions