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

这篇具有很好参考价值的文章主要介绍了Stable Diffusion web UI 运行报错 Error while deserializing header: MetadataIncompleteBuffer。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

Use --skip-version-check commandline argument to disable this check.
==============================================================================
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\v1-5-pruned-emaonly.safetensors

  2%|█▌                                                                          | 86.5M/3.97G [01:44<1:20:22, 866kB/s]
Calculating sha256 for D:\code\ai\sd.webui\webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors: preload_extensions_git_metadata for 7 extensions took 0.00s
9351bb829b90c2645b2c0f0860aea4b319b69c59544a4bf5120965c33034940c
Loading weights [9351bb829b] from D:\code\ai\sd.webui\webui\models\Stable-diffusion\v1-5-pruned-emaonly.safetensors
loading stable diffusion model: SafetensorError
Traceback (most recent call last):
  File "threading.py", line 973, in _bootstrap
  File "threading.py", line 1016, in _bootstrap_inner
  File "threading.py", line 953, in run
  File "D:\code\ai\sd.webui\webui\webui.py", line 306, in load_model
    shared.sd_model  # noqa: B018
  File "D:\code\ai\sd.webui\webui\modules\shared.py", line 726, in sd_model
    return modules.sd_models.model_data.get_sd_model()
  File "D:\code\ai\sd.webui\webui\modules\sd_models.py", line 422, in get_sd_model
    load_model()
  File "D:\code\ai\sd.webui\webui\modules\sd_models.py", line 455, in load_model
    state_dict = get_checkpoint_state_dict(checkpoint_info, timer)
  File "D:\code\ai\sd.webui\webui\modules\sd_models.py", line 271, in get_checkpoint_state_dict
    res = read_state_dict(checkpoint_info.filename)
  File "D:\code\ai\sd.webui\webui\modules\sd_models.py", line 250, in read_state_dict
    pl_sd = safetensors.torch.load_file(checkpoint_file, device=device)
  File "D:\code\ai\sd.webui\system\python\lib\site-packages\safetensors\torch.py", line 259, in load_file
    with safe_open(filename, framework="pt", device=device) as f:
safetensors_rust.SafetensorError: Error while deserializing header: MetadataIncompleteBuffer


Stable diffusion model failed to load
Applying attention optimization: Doggettx... done.
Traceback (most recent call last):
  File "D:\code\ai\sd.webui\webui\launch.py", line 38, in <module>
    main()
  File "D:\code\ai\sd.webui\webui\launch.py", line 34, in main
    start()
  File "D:\code\ai\sd.webui\webui\modules\launch_utils.py", line 344, in start
    webui.webui()
  File "D:\code\ai\sd.webui\webui\webui.py", line 390, in webui
    app, local_url, share_url = shared.demo.launch(
  File "D:\code\ai\sd.webui\system\python\lib\site-packages\gradio\blocks.py", line 1806, in launch
    raise ValueError(
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,注意后续的地址可能不一样,具体地址看报错里面的。文章来源地址https://www.toymoban.com/news/detail-647654.html

Stable Diffusion web UI 运行报错 Error while deserializing header: MetadataIncompleteBuffer,stable diffusion,前端,ui
image.png

到了这里,关于Stable Diffusion web UI 运行报错 Error while deserializing header: MetadataIncompleteBuffer的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

原文地址:https://blog.csdn.net/qq_41236493/article/details/132018971

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包