AUTOMATIC1111 / stable-diffusion-webui

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

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

Open Kuron88 opened 1 year ago

Kuron88 commented 1 year ago

Is there an existing issue for this?

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 ', '(((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 commented 1 year ago

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

mirozhao666 commented 1 year ago

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

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

vmxmy commented 1 year ago

same issue

jisuwudou commented 1 year ago

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

mohudesu commented 1 year ago

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

mohudesu commented 1 year ago

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

whtfj commented 8 months ago

在线安装插件无法成功