Skip to content
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

I have a 1.5 model .safetensor file downloaded from civitai. How to use it? #18

Open
davidliudev opened this issue Mar 22, 2024 · 3 comments

Comments

@davidliudev
Copy link

I have a 1.5 model .safetensor file downloaded from civitai. How to use it? I tried to change the sd_model to include path to the file but it complains that it cannot find model_index.json

@williamyang1991
Copy link
Owner

The way of loading safetensor is different from

pipe = StableDiffusionPipeline.from_pretrained(config['sd_path'], vae=vae, torch_dtype=torch.float16)

pipe = StableDiffusionPipeline.from_pretrained("./model/sd1.5/")

You can try the following two ways

pipe = StableDiffusionPipeline.from_pretrained("./model/sd1.5.safetensors", use_safetensors=True)
pipe = StableDiffusionPipeline.from_single_file("./model/sd1.5.safetensors")

@davidliudev
Copy link
Author

Thanks. Will try

@lengthtail
Copy link

@williamyang1991 I believe that many people would like to use FRESCO on their own locally stored models more easily.
I have made a related pull request, please check it out.
#42

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants