Closed oovm closed 1 year ago
Also, with this PR it's now possible to load only unet weights, but not vue or clip weights. Is it expected? :thinking:
I don't think this PR is useful anymore now that supports for safetensors has been included in the tch crate (tch#636) - loading from safetensors file should work for all models. So I'll close this PR but let me know if I'm missing something.
Solve #53
It can also work with official safetensors without convert weights now!
https://huggingface.co/runwayml/stable-diffusion-v1-5/blob/main/unet/diffusion_pytorch_model.safetensors
Wrap function can be removed when https://github.com/LaurentMazare/tch-rs/pull/633 merged.