g-diffuser-bot icon indicating copy to clipboard operation
g-diffuser-bot copied to clipboard

convert CKPT models to diffusers

Open chavinlo opened this issue 3 years ago • 4 comments

chavinlo avatar Sep 27 '22 19:09 chavinlo

Some folks have fine-tuned models that are only compatible with the older CompVis code, while I intend to add my own fine-tuning facilities to g-diffuser-lib in the future, in the meantime we will need a helper tool to convert those ckpt weight files into the diffusers model format.

parlance-zz avatar Sep 27 '22 21:09 parlance-zz

I found a script too as I mentioned in the discord https://github.com/huggingface/diffusers/blob/2c4ce96d12a65f08b176a6303a4f1dbb305f4ebd/scripts/convert_original_stable_diffusion_to_diffusers.py This version has an error but switching to the main branch works

chavinlo avatar Sep 27 '22 21:09 chavinlo

This also works for the discord bot

chavinlo avatar Sep 27 '22 21:09 chavinlo

I found a script too as I mentioned in the discord https://github.com/huggingface/diffusers/blob/2c4ce96d12a65f08b176a6303a4f1dbb305f4ebd/scripts/convert_original_stable_diffusion_to_diffusers.py This version has an error but switching to the main branch works

Thank you! This will save some time.

parlance-zz avatar Sep 27 '22 22:09 parlance-zz