Stable Diffusion web UI 运行报错 Error while deserializing header: MetadataIncompleteBuffer


   
   
  1. Use --skip-version-check commandline argument to disable this check.
  2. = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
  3. Downloading: "https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors" to D:\ code\ai\ sd.webui\webui\models\Stable-diffusion\v 1- 5-pruned-emaonly.safetensors
  4. 2%|█▌ | 86.5M / 3.97G [ 01: 44 < 1: 20: 22, 866kB /s]
  5. Calculating sha 256 for D:\ code\ai\ sd.webui\webui\models\Stable-diffusion\v 1- 5-pruned-emaonly.safetensors: preload_extensions_git_metadata for 7 extensions took 0.00s
  6. 9351bb 829b 90c 2645b 2c 0f 0860aea 4b 319b 69c 59544a 4bf 5120965c 33034940c
  7. Loading weights [ 9351bb 829b] from D:\ code\ai\ sd.webui\webui\models\Stable-diffusion\v 1- 5-pruned-emaonly.safetensors
  8. loading stable diffusion model: SafetensorError
  9. Traceback (most recent call last):
  10. File "threading.py", line 973, in _bootstrap
  11. File "threading.py", line 1016, in _bootstrap_inner
  12. File "threading.py", line 953, in run
  13. File "D:\code\ai\sd.webui\webui\webui.py", line 306, in load_model
  14. shared. sd_model # noqa: B 018
  15. File "D:\code\ai\sd.webui\webui\modules\shared.py", line 726, in sd_model
  16. return modules. sd_models.model_ data. get_ sd_model()
  17. File "D:\code\ai\sd.webui\webui\modules\sd_models.py", line 422, in get_ sd_model
  18. load_model()
  19. File "D:\code\ai\sd.webui\webui\modules\sd_models.py", line 455, in load_model
  20. state_dict = get_checkpoint_state_dict(checkpoint_info, timer)
  21. File "D:\code\ai\sd.webui\webui\modules\sd_models.py", line 271, in get_checkpoint_state_dict
  22. res = read_state_dict(checkpoint_info.filename)
  23. File "D:\code\ai\sd.webui\webui\modules\sd_models.py", line 250, in read_state_dict
  24. pl_ sd = safetensors.torch.load_ file(checkpoint_ file, device =device)
  25. File "D:\code\ai\sd.webui\system\python\lib\site-packages\safetensors\torch.py", line 259, in load_ file
  26. with safe_ open(filename, framework = "pt", device =device) as f:
  27. safetensors_rust.SafetensorError: Error while deserializing header: MetadataIncompleteBuffer
  28. Stable diffusion model failed to load
  29. Applying attention optimization: Doggettx... done.
  30. Traceback (most recent call last):
  31. File "D:\code\ai\sd.webui\webui\launch.py", line 38, in <module >
  32. main()
  33. File "D:\code\ai\sd.webui\webui\launch.py", line 34, in main
  34. start()
  35. File "D:\code\ai\sd.webui\webui\modules\launch_utils.py", line 344, in start
  36. webui.webui()
  37. File "D:\code\ai\sd.webui\webui\webui.py", line 390, in webui
  38. app, local_url, share_url = shared.demo.launch(
  39. File "D:\code\ai\sd.webui\system\python\lib\site-packages\gradio\blocks.py", line 1806, in launch
  40. raise ValueError(
  41. ValueError: When localhost is not accessible, a shareable link must be created. Please set share = True or check your proxy settings to allow access to localhost.

1、改成手动下载文件,注意要想删除D:\code\ai\sd.webui\webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors文件,每个人路径不一样,看上面的错误日志是上面地址。

2、删除后手动下载,并移动到D:\code\ai\sd.webui\webui\models\Stable-diffusion\路径下,同样要根据日志改成你的地址。

3、从这个地址下载文件,https://huggingface.co/runwayml/stable-diffusion-v1-5/resolve/main/v1-5-pruned-emaonly.safetensors,注意后续的地址可能不一样,具体地址看报错里面的。

image.png
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值