This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
conversion from .ckpt failing #60
-
hi, got this error while trying to convert a .ckpt packet to onnx:
the model I'm trying to convert is https://huggingface.co/joujiboi/Weri-Diffusion |
Beta Was this translation helpful? Give feedback.
Answered by
azuritecoin
Dec 17, 2022
Replies: 2 comments
-
You need to modify one line in the That should bypass the error. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ellugia
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You need to modify one line in the
convert_original_stable_diffusion_to_diffusers.py
script. On line 798 in the conversion script change this:checkpoint = torch.load(args.checkpoint_path)
to this:
checkpoint = torch.load(args.checkpoint_path, map_location=torch.device('cpu'))
That should bypass the error.