diffusers icon indicating copy to clipboard operation
diffusers copied to clipboard

Reading model from a local file

Open prp-e opened this issue 3 years ago • 3 comments

Greetings.

Consider I have a model.ckpt file, and it's trained and saved on my local computer. It's not hosted on huggingface and let's consider it's a little bit confidential and cannot be hosted anywhere. How can I feed it into from_pretrained() function?

prp-e avatar Aug 02 '22 19:08 prp-e

Hi @prp-e! You can load a local model using from_pretrained("local/path") if it was previously saved there with model.save_pretrained("local/path").

anton-l avatar Aug 03 '22 14:08 anton-l

Great. I was curious if it is possible to use multimodalart/majesty-diffusion with diffusers. I guess it's not possible yet.

prp-e avatar Aug 04 '22 08:08 prp-e

Not yet, but community model contributions are very much welcome! 🤗 cc @apolinario

anton-l avatar Aug 04 '22 11:08 anton-l

Could we open a new issue about adding "majesty-diffusion" to not loose track here. Closing this one as "Reading model from a local file" was answered above.

patrickvonplaten avatar Sep 13 '22 15:09 patrickvonplaten