AUTOMATIC1111 / stable-diffusion-webui

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

[Bug]: KeyError: 'randn_source' #12883

Closed wangjchao closed 1 year ago

wangjchao commented 1 year ago

Is there an existing issue for this?

What happened?

KeyError: 'randn_source' Time taken: 0.0 sec.

Steps to reproduce the problem

请问这是怎么回事,怎么决绝

What should have happened?

导入别人生成的图生成了图片信息,然后点击文生图,点击生成就报这个错误

Sysinfo

widows

What browsers do you use to access the UI ?

No response

Console logs

---
Loading weights [76bf19653f] from F:\Stable Diffusion Web UI\novelai-webui-aki-v2\models\Stable-diffusion\赛博Dream _ CNrealistic_MIXV30final_V30final.safetensors
Creating model from config: F:\Stable Diffusion Web UI\novelai-webui-aki-v2\configs\v1-inference.yaml
LatentDiffusion: Running in eps-prediction mode
DiffusionWrapper has 859.52 M params.
Applying attention optimization: xformers... done.
Model loaded in 5.3s (load weights from disk: 1.6s, create model: 0.6s, apply weights to model: 0.6s, apply channels_last: 0.5s, apply half(): 0.6s, move model to device: 1.3s).
Running on local URL:  http://127.0.0.1:7860

To create a public link, set `share=True` in `launch()`.
Startup time: 38.1s (launcher: 17.4s, import torch: 4.8s, import gradio: 1.4s, setup paths: 1.0s, other imports: 1.2s, setup codeformer: 0.1s, list SD models: 0.2s, load scripts: 5.2s, create ui: 6.2s, gradio launch: 0.5s, add APIs: 0.1s).
*** Error completing request
*** Arguments: ('task(9gwkgfcporfri70)', 'leogirl, 1girl, solo,  looking at viewer, white background,Backlight,long hair,  makeup, parted lips, red lips, eyeliner,sexy lingerie,Whole body,white Garter socks', '(nsfw:1.5),verybadimagenegative_v1.3, ng_deepnegative_v1_75t, (ugly face:0.8),cross-eyed,sketches, (worst quality:2), (low quality:2), (normal quality:2), lowres, normal quality, ((monochrome)), ((grayscale)), skin spots, acnes, skin blemishes, bad anatomy, DeepNegative, facing away, tilted head, {Multiple people}, lowres, bad anatomy, bad hands, text, error, missing fingers, extra digit, fewer digits, cropped, worstquality, low quality, normal quality, jpegartifacts, signature, watermark, username, blurry, bad feet, cropped, poorly drawn hands, poorly drawn face, mutation, deformed, worst quality, low quality, normal quality, jpeg artifacts, signature, watermark, extra fingers, fewer digits, extra limbs, extra arms,extra legs, malformed limbs, fused fingers, too many fingers, long neck, cross-eyed,mutated hands, polar lowres, bad body, bad proportions, gross proportions, text, error, missing fingers, missing arms, missing legs, extra digit, extra arms, extra leg, extra foot, ((repeating hair)) ,(extra fingers, deformed hands, polydactyl, Sexy, exposed,The bikini, poorly drawn face,Facial deformities,poorly drawn asymmetric eyes,Repeated people, multiple people, many people),nsfw', [], 40, 0, False, False, 1, 1, 7, 23458725.0, -1.0, 0, 0, 0, False, 1024, 544, True, 0, 2, 'Latent', 0, 0, 0, 0, '', '', ['Model hash: 76bf19653f', 'RNG: CPU'], <gradio.routes.Request object at 0x000002181B945990>, 0, False, {'ad_model': 'face_yolov8n.pt', 'ad_prompt': '', 'ad_negative_prompt': '', 'ad_confidence': 0.3, 'ad_mask_min_ratio': 0, 'ad_mask_max_ratio': 1, 'ad_x_offset': 0, 'ad_y_offset': 0, 'ad_dilate_erode': 4, 'ad_mask_merge_invert': 'None', 'ad_mask_blur': 4, 'ad_denoising_strength': 0.4, 'ad_inpaint_only_masked': True, 'ad_inpaint_only_masked_padding': 32, 'ad_use_inpaint_width_height': False, 'ad_inpaint_width': 512, 'ad_inpaint_height': 512, 'ad_use_steps': False, 'ad_steps': 28, 'ad_use_cfg_scale': False, 'ad_cfg_scale': 7, 'ad_restore_face': False, 'ad_controlnet_model': 'None', 'ad_controlnet_weight': 1, 'ad_controlnet_guidance_start': 0, 'ad_controlnet_guidance_end': 1}, {'ad_model': 'None', 'ad_prompt': '', 'ad_negative_prompt': '', 'ad_confidence': 0.3, 'ad_mask_min_ratio': 0, 'ad_mask_max_ratio': 1, 'ad_x_offset': 0, 'ad_y_offset': 0, 'ad_dilate_erode': 4, 'ad_mask_merge_invert': 'None', 'ad_mask_blur': 4, 'ad_denoising_strength': 0.4, 'ad_inpaint_only_masked': True, 'ad_inpaint_only_masked_padding': 32, 'ad_use_inpaint_width_height': False, 'ad_inpaint_width': 512, 'ad_inpaint_height': 512, 'ad_use_steps': False, 'ad_steps': 28, 'ad_use_cfg_scale': False, 'ad_cfg_scale': 7, 'ad_restore_face': False, 'ad_controlnet_model': 'None', 'ad_controlnet_weight': 1, 'ad_controlnet_guidance_start': 0, 'ad_controlnet_guidance_end': 1}, <scripts.controlnet_ui.controlnet_ui_group.UiControlNetUnit object at 0x000002181BCF07F0>, <scripts.controlnet_ui.controlnet_ui_group.UiControlNetUnit object at 0x000002181B9479A0>, <scripts.controlnet_ui.controlnet_ui_group.UiControlNetUnit object at 0x000002181B946710>, False, 1.6, 0.97, 0.4, 0, 20, 0, 12, '', True, False, False, False, 512, False, True, ['Face'], False, False, False, 'LoRA', 'None', 0, 0, 'LoRA', 'None', 0, 0, 'LoRA', 'None', 0, 0, 'LoRA', 'None', 0, 0, 'LoRA', 'None', 0, 0, None, 'Refresh models', False, 1, 0.15, False, 'OUT', ['OUT'], 5, 0, 'Bilinear', False, 'Pooling Max', False, 'Lerp', '', '', False, '🔄', 0.9, 5, '0.0001', False, 'None', '', 0.1, False, False, False, False, False, False, 'positive', 'comma', 0, False, False, '', 1, '', [], 0, '', [], 0, '', [], True, False, False, False, 0, None, None, False, None, None, False, None, None, False, 50, 1.6, 0.97, 0.4, 0, 20, 0, 12, '', True, False, False, False, 512, False, True, ['Face'], False) {}
    Traceback (most recent call last):
      File "F:\Stable Diffusion Web UI\novelai-webui-aki-v2\modules\call_queue.py", line 58, in f
        res = list(func(*args, **kwargs))
      File "F:\Stable Diffusion Web UI\novelai-webui-aki-v2\modules\call_queue.py", line 37, in f
        res = func(*args, **kwargs)
      File "F:\Stable Diffusion Web UI\novelai-webui-aki-v2\modules\txt2img.py", line 62, in txt2img
        processed = processing.process_images(p)
      File "F:\Stable Diffusion Web UI\novelai-webui-aki-v2\modules\processing.py", line 658, in process_images
        stored_opts = {k: opts.data[k] for k in p.override_settings.keys()}
      File "F:\Stable Diffusion Web UI\novelai-webui-aki-v2\modules\processing.py", line 658, in <dictcomp>
        stored_opts = {k: opts.data[k] for k in p.override_settings.keys()}
    KeyError: 'randn_source'
提示:Python 运行时抛出了一个异常。请检查疑难解答页面。

Additional information

No response

catboxanon commented 1 year ago

Please fill out the issue form correctly. You did not provide a sysinfo file.

System info file, generated by WebUI. You can generate it in settings, on the Sysinfo page. Drag the file into the field to upload it. If you submit your report without including the sysinfo file, the report will be closed. If needed, review the report to make sure it includes no personal information you don't want to share. If you can't start WebUI, you can use --dump-sysinfo commandline argument to generate the file.