Open Hansynily opened 1 year ago
` Error completing request | 0/20 [00:00<?, ?it/s] Arguments: ('task(ffdbc1l7dit921m)', 0, '', '', [], <PIL.Image.Image image mode=RGBA size=512x512 at 0x27DABAD0940>, None, None, None, None, None, None, 20, 0, 4, 0, 1, False, False, 1, 1, 2, 1.5, 0.3, -1.0, -1.0, 0, 0, 0, False, 0, 512, 512, 1, 0, 0, 32, 0, '', '', '', [], 9, True, 'Mixture of Diffusers', False, True, 1024, 1024, 64, 64, 32, 1, 'None', 1.1, 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, True, 512, 48, True, True, False, False, '
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, 'stablesr_webui_sd-v2-1-512-ema-000117.ckpt', 1.1, True, 'Wavelet', False) {} Traceback (most recent call last): File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-stablesr\scripts\stablesr.py", line 223, in sample_custom samples = sampler.sample(p, x, conditioning, unconditional_conditioning, image_conditioning=p.image_conditioning) File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\modules\sd_samplers_kdiffusion.py", line 377, in sample samples = self.launch_sampling(steps, lambda: self.func(self.model_wrap_cfg, x, extra_args={ File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\modules\sd_samplers_kdiffusion.py", line 251, in launch_sampling return func() File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\modules\sd_samplers_kdiffusion.py", line 377, inDuring handling of the above exception, another exception occurred:
Traceback (most recent call last): File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\modules\call_queue.py", line 57, in f res = list(func(*args, *kwargs)) File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\modules\call_queue.py", line 37, in f res = func(args, *kwargs) File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\modules\img2img.py", line 180, in img2img processed = modules.scripts.scripts_img2img.run(p, args) File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\modules\scripts.py", line 408, in run processed = script.run(p, *script_args) File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-stablesr\scripts\stablesr.py", line 248, in run result: Processed = processing.process_images(p) File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\modules\processing.py", line 526, in process_images res = process_images_inner(p) File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\modules\processing.py", line 680, in process_images_inner samples_ddim = p.sample(conditioning=c, unconditional_conditioning=uc, seeds=seeds, subseeds=subseeds, subseed_strength=p.subseed_strength, prompts=prompts) File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\extensions\sd-webui-stablesr\scripts\stablesr.py", line 238, in sample_custom self.stablesr_model.struct_cond_model.to(device=first_param.device) File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1145, in to return self._apply(convert) File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) [Previous line repeated 1 more time] File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 820, in _apply param_applied = fn(param) File "C:\Users\HANY\Documents\Portable Apps\Stable Diffusion\stable-diffusion-webui\venv\lib\site-packages\torch\nn\modules\module.py", line 1143, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 2.00 MiB (GPU 0; 4.00 GiB total capacity; 3.39 GiB already allocated; 0 bytes free; 3.45 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
`
I understand your situation and will try to make it support a 4GB card. However, one of my friend has already succeeded. I will ask him for some experience.
encode title size : 512 decode title size : 48 one more try
My 1660TI only use v2-1_512-ema-prune OutOfMemoryError
Error completing request
Arguments: ('task(fmaux8aa7tozeq2)', 0, '(best quality), ((masterpiece)), 1girl, highly detailed, digital painting, artstation, concept art, smooth, sharp focus, illustration,art by Guweiz , (photorealistic:0.8), (outline:0.8)', 'lowres, text, error, cropped, worst quality, low quality, jpeg artifacts, ugly, duplicate, morbid, mutilated, out of frame, extra fingers, mutated hands, poorly drawn hands, poorly drawn face, mutation, deformed, blurry, dehydrated, bad anatomy, bad proportions, extra limbs, cloned face, disfigured, gross proportions, malformed limbs, missing arms, missing legs, extra arms, extra legs, fused fingers, too many fingers, long neck', [], <PIL.Image.Image image mode=RGBA size=448x640 at 0x18D7F2E2770>, None, None, None, None, None, None, 20, 0, 4, 0, 1, False, False, 1, 1, 15, 1.5, 0.5, -1.0, -1.0, 0, 0, 0, False, 0, 640, 448, 1, 1, 0, 32, 0, '', '', '', [], 13, False, {'ad_model': 'face_yolov8n_v2.pt', 'ad_prompt': ' Recommended settings: Sampling Steps: 80-100, Sampler: Euler a, Denoising strength: 0.8 Will upscale the image by the selected scale factor; use width and height sliders to set tile size Will upscale the image depending on the selected target size type\n
\n', True, True, '', '', True, 50, True, 1, 0, False, '', '', '', '', -1, False, False, False, False, '', '', '', '', 222, False, False, False, False, False, 0, 0, '把剧本填写在这里~~(1 girl),(1 boy),(2 people),', '', '', '', 333, False, False, True, False, 1, 0, 0, 0, 0, 'Koyori - 只有我能进入的隐藏迷宫(插画师)', 'Digital Age - 数字时代', False, False, '', '', '', '', 4, 0.5, 'Linear', 'None', 'CFG Scale
should be 2 or lower.
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "D:\SD2\modules\call_queue.py", line 57, in f res = list(func(*args, kwargs)) File "D:\SD2\modules\call_queue.py", line 37, in f res = func(*args, *kwargs) File "D:\SD2\modules\img2img.py", line 176, in img2img processed = modules.scripts.scripts_img2img.run(p, args) File "D:\SD2\modules\scripts.py", line 441, in run processed = script.run(p, script_args) File "D:\SD2\extensions\sd-webui-stablesr\scripts\stablesr.py", line 248, in run result: Processed = processing.process_images(p) File "D:\SD2\modules\processing.py", line 611, in process_images res = process_images_inner(p) File "D:\SD2\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:\SD2\modules\processing.py", line 729, in process_images_inner samples_ddim = p.sample(conditioning=p.c, unconditional_conditioning=p.uc, seeds=p.seeds, subseeds=p.subseeds, subseed_strength=p.subseed_strength, prompts=p.prompts) File "D:\SD2\extensions\sd-webui-stablesr\scripts\stablesr.py", line 238, in sample_custom self.stablesr_model.struct_cond_model.to(device=first_param.device) File "D:\SD2\py310\lib\site-packages\torch\nn\modules\module.py", line 1145, in to return self._apply(convert) File "D:\SD2\py310\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) File "D:\SD2\py310\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) File "D:\SD2\py310\lib\site-packages\torch\nn\modules\module.py", line 797, in _apply module._apply(fn) [Previous line repeated 1 more time] File "D:\SD2\py310\lib\site-packages\torch\nn\modules\module.py", line 820, in _apply param_applied = fn(param) File "D:\SD2\py310\lib\site-packages\torch\nn\modules\module.py", line 1143, in convert return t.to(device, dtype if t.is_floating_point() or t.is_complex() else None, non_blocking) torch.cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 20.00 MiB (GPU 0; 6.00 GiB total capacity; 5.27 GiB already allocated; 0 bytes free; 5.31 GiB reserved in total by PyTorch) If reserved memory is >> allocated memory try setting max_split_size_mb to avoid fragmentation. See documentation for Memory Management and PYTORCH_CUDA_ALLOC_CONF
Even with lowest tile size applied, OOM happens when I'm trying to upscale a x512 image. Tile Diffusion and TileVAE applied. I think this is a dead end for 4GB vram users? Or is it just only me Tho it works with StableSR script disabled.
GPU: GTX 1650 "--lowvram" on argument