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模板网!

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

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

相关文章

  • 【大模型】通义千问safetensors_rust.SafetensorError: Error while deserializing header: HeaderTooLarge解决方法

    GitHub:https://github.com/QwenLM/Qwen python 3.8及以上版本 pytorch 1.12及以上版本,推荐2.0及以上版本 建议使用CUDA 11.4及以上(GPU用户、flash-attention用户等需考虑此选项) infer_qwen.py: 执行推理时报错如下: 先 pip 安装 modelscope 下载过程如下: 就看网速了,慢慢等待。。。 先安装: 再

    2024年02月03日
    浏览(17)
  • Stable Diffusion Web UI

    Stable Diffusion Web UI 是一个基于 Stable Diffusion 的基础应用,利用 gradio 模块搭建出交互程序,可以在低代码 GUI 中立即访问 Stable Diffusion   Stable Diffusion 是一个画像生成 AI,能够模拟和重建几乎任何可以以视觉形式想象的概念,而无需文本提示输入之外的任何指导 Stable Diffusion

    2024年02月11日
    浏览(18)
  • 本地部署 Stable Diffusion web UI

    Stable Diffusion 是一个潜在的文本到图像的扩散模型。感谢 Stability AI 慷慨的计算捐赠和 LAION 的支持,我们能够在 LAION-5B 数据库的一个子集的 512x512 图像上训练一个潜伏扩散模型。与谷歌的Imagen 类似,这个模型使用了一个冻结的 CLIP ViT-L/14 文本编码器来调节模型的文本提示。凭

    2024年02月03日
    浏览(37)
  • Stable Diffusion web UI 安装教程

    欢迎来到猫说AI,wx搜索,猫说AI接入了最新版Chatgpt供大家免费使用。 注意:这是ubuntu20.04安装步骤! conda创建python虚拟环境 clone项目并下载依赖 3.安装依赖 修改lanch.py 注意由于网络限制,需要将所有github的地址前面都加上代理前缀,请自行修改 修改如下: 可以先运行起来

    2024年02月09日
    浏览(24)
  • 一键安装 Stable Diffusion UI 2.0——在本地运行

    随着生成式 AI 的普及,许多人都想在不花一分钱的情况下获得其中一种图像生成器模型。您现在可以通过Stability AI公开发布的Stable Diffusion来做到这一点。 因为它是开源的并且模型是公开的,所以您可以在本地 PC 上运行该工具。它是免费的,而且非常方便,您可以在自己的时

    2023年04月10日
    浏览(20)
  • Stable Diffusion web UI 部署详细教程

    本文使用 AutoDL 平台进行 Stable Diffusion web UI 云端部署 AutoDL 官网:AutoDL算力云 | 弹性、好用、省钱。租GPU就上AutoDL Stable Diffusion web UI 官网:AUTOMATIC1111/stable-diffusion-webui: Stable Diffusion web UI (github.com) 租用实例 选择社区镜像 AUTOMATIC1111/stable-diffusion-webui/NovelAI-Consolidation-Package-3.1

    2024年02月11日
    浏览(18)
  • Stable Diffusion Web-UI 安装指南

    Stable DIffusion 是 Stability.AI 开源的 text-to-image 模型,目前类似产品有 Midjourney 以及 OpenAI 的 DELL-2 ;从AI绘画效果上来说,Midjourney 目前公认是最好的;但从模型的可玩性和发展潜力来看,个人观点来看,Stable Diffsuion 是是最好的。 Stable Diffsuion Web-ui 是基于 Stable Diffsuion 开发的一

    2024年02月09日
    浏览(17)
  • Stable Diffusion Web UI的原理与使用

    Stable Diffusion是一套基于Diffusion扩散模型生成技术的图片生成方案,随着技术的不断发展以及工业界对这套工程细节的不断优化,使其终于能在个人电脑上运行,本文将从github下载开始讲一讲如何使用Stable Diffusion Web UI进行AI图像的生成。 StableDiffusion是基于扩散模型的应用,那

    2024年02月11日
    浏览(19)
  • Ubuntu 本地部署 Stable Diffusion web UI

    Stable Diffusion 是一个潜在的文本到图像的扩散模型。感谢 Stability AI 慷慨的计算捐赠和 LAION 的支持,我们能够在 LAION-5B 数据库的一个子集的 512x512 图像上训练一个潜伏扩散模型。与谷歌的Imagen 类似,这个模型使用了一个冻结的 CLIP ViT-L/14 文本编码器来调节模型的文本提示。凭

    2024年02月08日
    浏览(25)
  • Stable Diffusion web UI之ControlNet使用

    如果你使用 Stable Diffusion 一段时间后,您可能已经注意到图像的输出结果具有无穷无尽的可能性。需要大量的试验才能生成高质量的图像,感觉就是在赌这一下能不能拍出好图。然而,即使输入复杂和详尽的提示,你也会觉得很难控制生成的图片的方向​​。对于这种情况,

    2024年02月10日
    浏览(21)

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

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

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

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

二维码1

领取红包

二维码2

领红包