FRESCO icon indicating copy to clipboard operation
FRESCO copied to clipboard

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

Open davidliudev opened this issue 11 months ago • 3 comments

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

davidliudev avatar Mar 22 '24 04:03 davidliudev

The way of loading safetensor is different from https://github.com/williamyang1991/FRESCO/blob/9fe1be71b6c21890b5bc92659026f9586440266e/run_fresco.py#L76

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")

williamyang1991 avatar Mar 22 '24 04:03 williamyang1991

Thanks. Will try

davidliudev avatar Mar 22 '24 06:03 davidliudev

@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. https://github.com/williamyang1991/FRESCO/pull/42

lengthtail avatar Apr 29 '24 09:04 lengthtail