If you are encountering the "Stable Diffusion model failed to load, exiting" error while trying to launch the WebUI-user.bat file, this guide is for you!
Stable Diffusion is one of the best AI image generators out there. You can use this free tool to generate NSFW images and other realistic images. However, sometimes you may face issues such as the runtime error or loading issues while running Stable Diffusion locally.
In this guide, we will explore some of the most effective ways to fix the "Stable Diffusion model failed to load, exiting" error. So, let's dive in!
How to fix "Stable Diffusion model failed to load, exiting" error
We have seen a lot of players posting their experiences with this particular issue on Reddit and GitHub, and we’ve done our best to comb through them all to find the most helpful information and share it with you.
So, here are some working solutions to fix the "Stable Diffusion model failed to load, exiting" error:
- Reinstalling Torch fixed the issue for this user. To do that, add the following argument to the webui-user.bat file:
- A Reddit user suggested that adding the following argument to the webui-user.bat file should fix the issue:
- Deleting the venv folder and letting it all rebuild at launch seems to fix the issue, according to this Reddit user.
- Another fix is to delete your existing venv and launch.py, then do a git pull, after that run webui-user.bat.
In case you don't know how to edit the webui-user.bat file, here is how it should look after adding the above-mentioned arguments:
What is "Stable Diffusion model failed to load, exiting" error?
The error appears to be in the loading of the VAE model weights specified in settings, which is resulting in a TypeError during the pickling process.
Specifically, the error message states: "TypeError: TypedStorage.new() got an unexpected keyword argument '_internal'". This suggests that there may be an issue with the way the VAE model weights are being loaded or stored.
Additionally, there appears to be another error when attempting to load the Stable diffusion model, with an AttributeError occurring during the loading process. It is possible that this error is related to the VAE model weight loading error, as the two models may be interconnected in some way.
For more articles like this, take a look at our How To and Tech page.