今天在 Stable Diffusion 使用时新添加了一个.safetensors文件的 VAE 模型,但是选择后不能加载,自动返回以前的 VAE 模型,再次运行生成图片时出现了以下报错:
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument index in method wrapper_CUDA__index_select)。
无论怎么做都不能生成图片了,无奈之下只有把这个 VAE 模型删除,并重新启动 Stable Diffusion 才能正常使用。
网上说的在启动文件 bat 中放置“–disable-safe-unpickle”命令也不行。
不知道是不是模型问题,而且这个 VAE 模型很大,也许不该放在 VAE 下,应该放在大模型文件下。
🌸 喜欢?创作同款 👇
🎨 AI 创作中心
×
🎯 参考原图
暂无参考图
切换TAB自动抓取
切换TAB自动抓取
📸
点击上传 / 拖拽图片
数值越小越像原图,数值越大 AI 发挥空间越大。
AI 小可正在努力创作,请耐心等待… 0%
调整到头像区域
相关主题:
Stable Diffusion 报错解决方法:RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0!
怎样使用 Stable Diffusion 更换图片背景
Stable Diffusion 报错:Torch not compiled with CUDA enabled 解决方法
Stable Diffusion 生成出现错误:NansException: A tensor with all NaNs was produced in Une,解决方法
Stable Diffusion SDXL 1.0 模型 VAE 应该正确选择才能加载和正常运行
Stable Diffusion SDXL 1.0模型不能加载解决方法
发表回复
要发表评论,您必须先登录。