AI绘画-Stable Diffusion解决报错教程-模型损坏: 模型损坏 venv “G:openai.wikistable-diffusion-webuivenvScriptsPython.exe” Python 3.10.9 | packaged by Anacon……
哈喽!伙伴们,我是小智,你们的AI向导。欢迎来到每日的AI学习时间。今天,我们将一起深入AI的奇妙世界,探索“AI绘画-Stable Diffusion解决报错教程-模型损坏”,并学会本篇文章中所讲的全部知识点。还是那句话“不必远征未知,只需唤醒你的潜能!”跟着小智的步伐,我们终将学有所成,学以致用,并发现自身的更多可能性。话不多说,现在就让我们开始这场激发潜能的AI学习之旅吧。
AI绘画-Stable Diffusion解决报错教程-模型损坏:
模型损坏
venv “G:openai.wikistable-diffusion-webuivenvScriptsPython.exe”
Python 3.10.9 | packaged by Anaconda, Inc. | (main, Mar 8 2023, 10:42:25) [MSC v.1916 64 bit (AMD64)]
Commit hash: a9fed7c364061ae6efb37f797b6b522cb3cf7aa2
Installing requirements for Web UI
Launching Web UI with arguments:
No module ‘xformers’. Proceeding without it.
Loading weights [a586d5a51a] from G:openai.wikistable-diffusion-webuimodelsStable-diffusionv1-5-pruned-emaonly.safetensors
loading stable diffusion model: RuntimeError
Traceback (most recent call last):
File “G:openai.wikistable-diffusion-webuiwebui.py”, line 136, in initialize
modules.sd_models.load_model()
File “G:openai.wikistable-diffusion-webuimodulessd_models.py”, line 407, in load_model
state_dict = get_checkpoint_state_dict(checkpoint_info, timer)
File “G:openai.wikistable-diffusion-webuimodulessd_models.py”, line 262, in get_checkpoint_state_dict
res = read_state_dict(checkpoint_info.filename)
File “G:openai.wikistable-diffusion-webuimodulessd_models.py”, line 241, in read_state_dict
pl_sd = safetensors.torch.load_file(checkpoint_file, device=device)
File “G:openai.wikistable-diffusion-webuivenvlibsite-packagessafetensorstorch.py”, line 100, in load_file
result[k] = f.get_tensor(k)
RuntimeError: self.size(-1) must be divisible by 4 to view Byte as Float (different element sizes), but got 6545423
Stable diffusion model failed to load, exiting
请按任意键继续。 . .
根据错误信息,您的 Stable-diffusion 模型加载失败,原因是 self.size(-1)必须可以被 4 整除,但是实际上得到了 6545423,这是不可能被 4 整除的。这可能是由于模型参数文件已损坏或不完整导致的。您可以尝试重新下载模型文件并重新运行程序,以解决这个问题。
嘿,伙伴们,今天我们的AI探索之旅已经圆满结束。关于“AI绘画-Stable Diffusion解决报错教程-模型损坏”的内容已经分享给大家了。感谢你们的陪伴,希望这次旅程让你对AI能够更了解、更喜欢。谨记,精准提问是解锁AI潜能的钥匙哦!如果有小伙伴想要了解学习更多的AI知识,请关注我们的官网“AI智研社”,保证让你收获满满呦!
还没有评论呢,快来抢沙发~