- Notifications
You must be signed in to change notification settings - Fork29.5k
Fix corrupt model initial load loop#15600
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
if for some reason the initial loading model at loading phase of webui is corruptedafter entering this state the user will not be able to load even a good model is selected, due the the unload_model_weights > send_model_to_cpu > m.lowvram attribute check will fail becaules m is Nonewebui will be stuck in the loop unable to recover without manual intervention
FurkanGozukara commentedApr 22, 2024
Yes I had this error thanks for fixing |
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
This comment was marked as off-topic.
Zespina commentedApr 24, 2024
Hi, I have this error |
FurkanGozukara commentedApr 24, 2024
I tried several times to reload and it fixed |
w-e-w commentedApr 24, 2024
@Zespina delete the corrupted model that's causing issue |
FurkanGozukara commentedApr 24, 2024
No it is not corrupted model error Happened to me as well and after trying several times fixed There is certainly a bug |
xyhk0 commentedMay 17, 2024
I also experienced the same issue. After deleting and re-downloading the new model several times, the error still persists upon startup. I noticed that in my configuration information, "sd_model_checkpoint" is set to null, which is likely the cause of the problem. However, I have not been able to find where to modify this configuration item.
|
w-e-w commentedMay 17, 2024
I did some test just now by manually set when the value is to null, webui will look for the first available model and loaded it from my testing as long as the model that webui tries to load can be loaded correctly (not corrupted) then it will able to function normally
even though attempting multiple times makes the likelihood of file corruption less likely, but it is still possible Click to see howyou can calculate the hash of your downloaded file by using tools such as Powershell you can do so by using various tools such as powershell open powershell and then type Get-FileHash"C:\Path\to\the\modle.safetensors" and press enter >Get-FileHash"v1-5-pruned-emaonly.safetensors"Algorithm Hash-------------SHA256 6CE0161689B3853ACAA03779EC93EAFE75A02F4CED659BEE03F50797806FA2FA after obtaining the hash of your file compare it to what is described by the source of the model for example the above hash is for hash can also be found on civitai
|
xyhk0 commentedMay 18, 2024
Thank you very much for your advice. Yesterday, I updated the new code you submitted, and today I turned on my computer and tried to run it again. I found that there were no errors reported. Although I restarted several times yesterday, it didn't work, which was quite strange. Nevertheless, thanks to your help, your method has solved my problem. I am very grateful. |
Kouignaman13 commentedMay 24, 2024
Dude, you're very kind to offer your help, but for some of us we're just normal people, I don't do any coding, I'm bad with computers and I don't understand well English, but for my work I need this ia to work absolutely, I've been tearing my hair out for hours trying to find solutions. You seem to have one but you don't explain how to do it, it's extremely frustrating, where do you put your line of code? in the bat, user sh? please tell us. |
AUTOMATIC1111 commentedJun 8, 2024
I wasn't able to reproduce the problem with being unable to switch with lowvram, but I guess if it helps people it can be added. |
FurkanGozukara commentedJun 8, 2024
this error occurs high vram machines as well. i encountered on runpod multiple times with 24 gb vram |
wdloyeu commentedJul 7, 2024 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
oh ,no.the same my problem,how solve |
ZonghongWu commentedNov 13, 2024
How can I fix it...omg... |


Uh oh!
There was an error while loading.Please reload this page.
Description
Fix corrupt model initial load loop
[Bug]: Unable to select a checkpoint model when starting from a clean or existing installation. #15568
fix initial corrupt model load loop
if for some reason the initial loading model at loading phase of webui is corrupted
after entering this state the user will not be able to load even a good model is selected, due the the unload_model_weights > send_model_to_cpu > m.lowvram attribute check will fail becaules m is None
webui will be stuck in the loop unable to recover without manual intervention
this issue can for the most part be simulated by setting the value
config.json > sd_model_checkpointpath of a know corrupted modelTesting with theis PR
I was able to change the model even the initial settings at load is pointing to a corrupted model,
and after switching to a good model, image generation seem to work properly.
other possibly related issue
Checklist: