Open owspace opened 1 year ago
我跳到你的讨论:)我面临着与nicklansley提到的同样的问题,我已遵循你的指示并确保仅使用 venv。Stacktrace 与最终消息非常相似。
TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.
我注意到,如果我从 UI 下拉列表中在两个模型之间切换,那么它就可以工作
yes 我遇到了同样的问题 但是在切换模型后能够正常使用,每次启动的第一个模型都会保存,我很难理解这是为什么
I tried the solutions given
This works for me. 2 steps:
More Info: When using other checkpoint, may still cause the error: TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.
Work·around: Switch Stable Diffusion checkpoint to 'v1-5-pruned-emaonly.ckpt [cc6cb27103]'; and then switch back. The error disappear.
FYI. I got the solution base on this hint when I click 'Generate' button in the 'txt2img' tab : NansException: A tensor with all NaNs was produced in Unet. This could be either because there's not enough precision to represent the picture, or because your video card does not support half type. Try setting the "Upcast cross attention layer to float32" option in Settings > Stable Diffusion or using the --no-half commandline argument to fix this. Use --disable-nan-check commandline argument to disable this check.
I also encountered the same issue, and I believe it was caused by loading the model during the initial startup. Here's how I resolved it:
I also encountered the same issue, and I believe it was caused by loading the model during the initial startup. Here's how I resolved it:
- In the "models/Stable-diffusion" folder, I kept only one reliable "safetensors" file, such as "AnythingV5V3_v5PrtRE.safetensors" or "v1-5-pruned.safetensors."
- I restarted the ./webui.sh, and there were no error messages.
- I placed the other models back into their original folder.
- I started the ./webui.sh again, and there were still no error messages. The problem was resolved. My environment is M3 Max. Hope this can help you out.
Switching the models can also solve this problem temporarily.
我跳到你的讨论:)我面临着与nicklansley提到的同样的问题,我已遵循你的指示并确保仅使用 venv。Stacktrace 与最终消息非常相似。
TypeError: Cannot convert a MPS Tensor to float64 dtype as the MPS framework doesn't support float64. Please use float32 instead.
我注意到,如果我从 UI 下拉列表中在两个模型之间切换,那么它就可以工作
yes 我遇到了同样的问题 但是在切换模型后能够正常使用,每次启动的第一个模型都会保存,我很难理解这是为什么
Yes, it works for me.
这是有些模型加载的时候,出现的错误,导致无法加载。 我的解决方案: 升级pytorh到2.2.1,会提示torchvision0.15.2对torch 2.0.1有依赖关系,把torchvision升级到0.17.1 现在可以成功加载chilloutrealistic_v21.safetensors模型
Tried to use
--disable-model-loading-ram-optimization
and can workaround this error.BASED AND GOATED
Worked for me too. The error is gone.
I had the same issue and at least for me it was related to a messed up virtualenv. I had to do this:
- Clone a new copy of a1111
- cd to the new cloned directory.
- Run virtualenv venv -p python3 source venv/bin/activate
- Then in the same shell window run webui.sh and let it repull all the dependencies.
After this the issue with certain older models went away.
hey, but if I get this error?
"source venv/bin/activate zsh: command not found: virtualenv"
--disable-model-loading-ram-optimization
it works for me too, thanks.
I had the same issue and at least for me it was related to a messed up virtualenv. I had to do this:
- Clone a new copy of a1111
- cd to the new cloned directory.
- Run virtualenv venv -p python3 source venv/bin/activate
- Then in the same shell window run webui.sh and let it repull all the dependencies.
After this the issue with certain older models went away.
Mey I ask what is a1111
?
@ukateki a1111 = Automatic1111 = this repo
Is there an existing issue for this?
What happened?
启动webui后无法生成图像
Steps to reproduce the problem
1.启动webui
What should have happened?
正常生成图片
Sysinfo
{ "date": "Thu Aug 31 22:36:37 2023", "timestamp": "22:36:52", "uptime": "Thu Aug 31 22:18:16 2023", "version": { "app": "stable-diffusion-webui", "updated": "2023-08-31", "hash": "5ef669de", "url": "https://github.com/AUTOMATIC1111/stable-diffusion-webui/tree/master" }, "torch": "2.0.1 autocast half", "gpu": {}, "state": { "started": "Thu Aug 31 22:36:52 2023", "step": "0 / 0", "jobs": "0 / 0", "flags": "", "job": "", "text-info": "" }, "memory": { "ram": { "free": 29.98, "used": 2.02, "total": 32 } }, "optimizations": [ "none" ], "libs": { "xformers": "", "diffusers": "", "transformers": "4.30.2" }, "repos": { "Stable Diffusion": "[cf1d67a] 2023-03-25", "Stable Diffusion XL": "[45c443b] 2023-07-26", "CodeFormer": "[c5b4593] 2022-09-09", "BLIP": "[48211a1] 2022-06-07", "k_diffusion": "[ab527a9] 2023-08-12" }, "device": { "active": "mps", "dtype": "torch.float16", "vae": "torch.float32", "unet": "torch.float16" },
}
What browsers do you use to access the UI ?
Google Chrome
Console logs
Additional information
No response