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

[Bug]: 生成到一半就出错,试了好多次总是这样Error completing request-------TypeError: argument of type 'NoneType' is not iterable

Open Kuron88 opened this issue 2 years 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?

生成到一半就自动退出 Error completing request Arguments: ('task(pdv3fdoc94acsdm)', 'best quality, masterpiece, highres, 1girl,china dress,Beautiful face, hair ornament, solo,looking at viewer,smile,closed mouth,lips, dress,hair ornament, necklace, jewelry, long hair, earrings, chinese clothes, architecture,east asian architecture lora:koreanDollLikeness_v15:0.6', '(((simple background))),monochrome ,lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, lowres, bad anatomy, bad hands, text, error, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, ugly,pregnant,vore,duplicate,morbid,mut ilated,tran nsexual, hermaphrodite,long neck,mutated hands,poorly drawn hands,poorly drawn face,mutation,deformed,blurry,bad anatomy,bad proportions,malformed limbs,extra limbs,cloned face,disfigured,gross proportions, (((missing arms))),(((missing legs))), (((extra arms))),(((extra legs))),pubic hair, plump,bad legs,error legs,username,blurry,bad feet', [], 30, 0, True, False, 1, 1, 7, 1711702787.0, -1.0, 0, 0, 0, False, 1024, 498, True, 0.7, 2, 'R-ESRGAN 4x+', 24, 0, 0, [], 0, True, False, 'LoRA', 'jujinyi(52522df4516f)', 0.4, 0.4, 'LoRA', 'None', 1, 1, 'LoRA', 'None', 1, 1, 'LoRA', 'None', 1, 1, 'LoRA', 'None', 1, 1, None, 'Refresh models', False, True, False, 'none', 'None', 1, None, False, 'Scale to Fit (Inner Fit)', False, False, 64, 64, 64, 0, 1, False, 'NONE:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0\nALL:1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1\nINS:1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0\nIND:1,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0\nINALL:1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0\nMIDD:1,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0\nOUTD:1,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0\nOUTS:1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1\nOUTALL:1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1\nALL0.5:0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5', True, 0, 'values', '0,0.25,0.5,0.75,1', 'Block ID', 'IN05-OUT05', 'none', '', '0.5,1', 'BASE,IN01,IN02,IN04,IN05,IN07,IN08,M00,OUT03,OUT04,OUT05,OUT06,OUT07,OUT08,OUT09,OUT10,OUT11', 'black', '20', False, False, False, 'positive', 'comma', 0, False, False, '', 1, '', 0, '', 0, '', True, False, False, False, 0, None, 50) {} Traceback (most recent call last): File "D:\webui\webui\modules\call_queue.py", line 56, in f res = list(func(*args, **kwargs)) File "D:\webui\webui\modules\call_queue.py", line 37, in f res = func(*args, **kwargs) File "D:\webui\webui\modules\txt2img.py", line 56, in txt2img processed = process_images(p) File "D:\webui\webui\modules\processing.py", line 486, in process_images res = process_images_inner(p) File "D:\webui\webui\modules\processing.py", line 635, 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 "D:\webui\webui\modules\processing.py", line 879, in sample image = images.resize_image(0, image, target_width, target_height, upscaler_name=self.hr_upscaler) File "D:\webui\webui\modules\images.py", line 275, in resize_image res = resize(im, width, height) File "D:\webui\webui\modules\images.py", line 267, in resize im = upscaler.scaler.upscale(im, scale, upscaler.data_path) File "D:\webui\webui\modules\upscaler.py", line 63, in upscale img = self.do_upscale(img, selected_model) File "D:\webui\webui\modules\realesrgan_model.py", line 45, in do_upscale upsampler = RealESRGANer( File "D:\webui\system\python\lib\site-packages\realesrgan\utils.py", line 66, in init if 'params_ema' in loadnet: TypeError: argument of type 'NoneType' is not iterable

Steps to reproduce the problem

执行就这样

What should have happened?

生成出来图片

Commit where the problem happens

刚安装好,执行生成图片就这样

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-half --skip-torch-cuda-test

List of extensions

sd-webui-additional-networks

Console logs

Error completing request
Arguments: ('task(pdv3fdoc94acsdm)', 'best quality, masterpiece, highres, 1girl,china dress,Beautiful face, hair ornament, solo,looking at viewer,smile,closed mouth,lips, dress,hair ornament, necklace, jewelry, long hair, earrings, chinese clothes, architecture,east asian architecture <lora:koreanDollLikeness_v15:0.6>', '(((simple background))),monochrome ,lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, lowres, bad anatomy, bad hands, text, error, extra digit, fewer digits, cropped, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, username, blurry, ugly,pregnant,vore,duplicate,morbid,mut ilated,tran nsexual, hermaphrodite,long neck,mutated hands,poorly drawn hands,poorly drawn face,mutation,deformed,blurry,bad anatomy,bad proportions,malformed limbs,extra limbs,cloned face,disfigured,gross proportions, (((missing arms))),(((missing legs))), (((extra arms))),(((extra legs))),pubic hair, plump,bad legs,error legs,username,blurry,bad feet', [], 30, 0, True, False, 1, 1, 7, 1711702787.0, -1.0, 0, 0, 0, False, 1024, 498, True, 0.7, 2, 'R-ESRGAN 4x+', 24, 0, 0, [], 0, True, False, 'LoRA', 'jujinyi(52522df4516f)', 0.4, 0.4, 'LoRA', 'None', 1, 1, 'LoRA', 'None', 1, 1, 'LoRA', 'None', 1, 1, 'LoRA', 'None', 1, 1, None, 'Refresh models', False, True, False, 'none', 'None', 1, None, False, 'Scale to Fit (Inner Fit)', False, False, 64, 64, 64, 0, 1, False, 'NONE:0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0\nALL:1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1\nINS:1,1,1,1,0,0,0,0,0,0,0,0,0,0,0,0,0\nIND:1,0,0,0,1,1,1,0,0,0,0,0,0,0,0,0,0\nINALL:1,1,1,1,1,1,1,0,0,0,0,0,0,0,0,0,0\nMIDD:1,0,0,0,1,1,1,1,1,1,1,1,0,0,0,0,0\nOUTD:1,0,0,0,0,0,0,0,1,1,1,1,0,0,0,0,0\nOUTS:1,0,0,0,0,0,0,0,0,0,0,0,1,1,1,1,1\nOUTALL:1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1\nALL0.5:0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5,0.5', True, 0, 'values', '0,0.25,0.5,0.75,1', 'Block ID', 'IN05-OUT05', 'none', '', '0.5,1', 'BASE,IN01,IN02,IN04,IN05,IN07,IN08,M00,OUT03,OUT04,OUT05,OUT06,OUT07,OUT08,OUT09,OUT10,OUT11', 'black', '20', False, False, False, 'positive', 'comma', 0, False, False, '', 1, '', 0, '', 0, '', True, False, False, False, 0, None, 50) {}
Traceback (most recent call last):
  File "D:\webui\webui\modules\call_queue.py", line 56, in f
    res = list(func(*args, **kwargs))
  File "D:\webui\webui\modules\call_queue.py", line 37, in f
    res = func(*args, **kwargs)
  File "D:\webui\webui\modules\txt2img.py", line 56, in txt2img
    processed = process_images(p)
  File "D:\webui\webui\modules\processing.py", line 486, in process_images
    res = process_images_inner(p)
  File "D:\webui\webui\modules\processing.py", line 635, 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 "D:\webui\webui\modules\processing.py", line 879, in sample
    image = images.resize_image(0, image, target_width, target_height, upscaler_name=self.hr_upscaler)
  File "D:\webui\webui\modules\images.py", line 275, in resize_image
    res = resize(im, width, height)
  File "D:\webui\webui\modules\images.py", line 267, in resize
    im = upscaler.scaler.upscale(im, scale, upscaler.data_path)
  File "D:\webui\webui\modules\upscaler.py", line 63, in upscale
    img = self.do_upscale(img, selected_model)
  File "D:\webui\webui\modules\realesrgan_model.py", line 45, in do_upscale
    upsampler = RealESRGANer(
  File "D:\webui\system\python\lib\site-packages\realesrgan\utils.py", line 66, in __init__
    if 'params_ema' in loadnet:
TypeError: argument of type 'NoneType' is not iterable

Additional information

No response

Kuron88 avatar Mar 13 '23 10:03 Kuron88

用英文路径问题依旧,如果开启了面部修复和高分辨率修复的话,基本就会出现这个问题

Kuron88 avatar Mar 13 '23 14:03 Kuron88

用英文路径问题依旧,如果开启了面部修复和高分辨率修复的话,基本就会出现这个问题

我也是这个问题,开启面部修复就会在渲染完成的一瞬间出现bug,我的显卡是10系列了,我怀疑是不是跟显存过低有关

mirozhao666 avatar Mar 29 '23 14:03 mirozhao666

same issue

vmxmy avatar Apr 01 '23 17:04 vmxmy

我用upscale:R-ESRGAN-4x 就报这个错,改成其他的就行了

jisuwudou avatar Apr 22 '23 09:04 jisuwudou

解决了吗,我也是这样的问题

mohudesu avatar Apr 24 '23 05:04 mohudesu

我显卡是2060 12g也不行,难道是显卡问题吗 ,内存32g ,cpu 12400

mohudesu avatar Apr 24 '23 05:04 mohudesu

在线安装插件无法成功

whtfj avatar Nov 05 '23 00:11 whtfj