Always get _pickle.UnpicklingError: invalid load key, '<'. #5027
Unanswered
benagastov
asked this question in
Q&A
Replies: 1 comment 1 reply
-
try running again with |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My colab shows me an error everytime I load custom model from huggingface like this one:
`During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/content/stable-diffusion-webui/modules/safe.py", line 131, in load_with_extra
check_pt(filename, extra_handler)
File "/content/stable-diffusion-webui/modules/safe.py", line 98, in check_pt
unpickler.load()
_pickle.UnpicklingError: invalid load key, '<'.
-----> !!!! The file is most likely corrupted !!!! <-----
You can skip this check with --disable-safe-unpickle commandline argument, but that is not going to help you.
Traceback (most recent call last):
File "launch.py", line 251, in
start()
File "launch.py", line 246, in start
webui.webui()
File "/content/stable-diffusion-webui/webui.py", line 150, in webui
initialize()
File "/content/stable-diffusion-webui/webui.py", line 85, in initialize
modules.sd_models.load_model()
File "/content/stable-diffusion-webui/modules/sd_models.py", line 248, in load_model
load_model_weights(sd_model, checkpoint_info)
File "/content/stable-diffusion-webui/modules/sd_models.py", line 177, in load_model_weights
if "global_step" in pl_sd:
TypeError: argument of type 'NoneType' is not iterable`
I read some code in safe.py from here: https://github.com/AUTOMATIC1111/stable-diffusion-webui/blob/master/modules/safe.py
It seems this one the cause, how to run my model? I already spent some bandiwidth to download and upload it to web.
Beta Was this translation helpful? Give feedback.
All reactions