-
Notifications
You must be signed in to change notification settings - Fork 127
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
OSError: Unable to load weights from pytorch checkpoint file for (...) #12
Comments
To clarify, are you trying to run the Python code without Docker or the build script? |
This is after building docker container when running |
I reran the commands on a fresh machine and I wasn't able to reproduce this issue. If you clear out the huggingface volume ( |
That did work! Thank you, however right now it seems that docker has no permission to save it in |
Were you able to resolve this issue? Does the |
I need to add the docker to a new group, then it had permission to write down the file. |
In direct linux machine I get these error:
OSError: Unable to load weights from pytorch checkpoint file for '/home/huggingface/.cache/huggingface/diffusers/models--CompVis--stable-diffusion-v1-4/snapshots/48a1bd8a2d86483de1ac27e95e188569b57a494e/unet/diffusion_pytorch_model.bin' at '/home/huggingface/.cache/huggingface/diffusers/models--CompVis--stable-diffusion-v1-4/snapshots/48a1bd8a2d86483de1ac27e95e188569b57a494e/unet/diffusion_pytorch_model.bin'. If you tried to load a PyTorch model from a TF 2.0 checkpoint, please set from_tf=True.
Looks like this path is broken when building it
/home/huggingface/.cache/huggingface/diffusers/models--CompVis--stable-diffusion-v1-
but I can pind place where to fix it.The text was updated successfully, but these errors were encountered: