Repository: stable-diffusion-webui
Issue: [Bug]: 生成到一半就出错，试了好多次总是这样Error completing request-------TypeError: argument of type 'NoneType' is not iterable
Labels: bug-report

### 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

```Shell
--no-half --skip-torch-cuda-test
```


### List of extensions

sd-webui-additional-networks

### Console logs

```Shell
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_