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

how to use: convert_original_stable_diffusion_to_difdusers.py??? #2

Open
jiachen0212 opened this issue Jul 8, 2024 · 2 comments
Open

Comments

@jiachen0212
Copy link

Thanks for the great work of open source. I want to use LoRa structure to fine-tune based on ControlNet. It seems that the code does not support it yet?

@LeslieZhoa
Copy link
Owner

Hi @jiachen0212 ,what error did you encounter? Is it because the version of your diffuser is incorrect, or is your network restricted?If your diffusers is latest, you can try here

@jiachen0212
Copy link
Author

jiachen0212 commented Jul 9, 2024

Hi @jiachen0212 ,what error did you encounter? Is it because the version of your diffuser is incorrect, or is your network restricted?If your diffusers is latest, you can try here

enen thanks very much,I solved this problem~:

git clone https://github.com/huggingface/diffusers.git  (and install the env~: conda install -c conda-forge diffusers)
cd diffusers/scripts 
python convert_original_stable_diffusion_to_diffusers.py --checkpoint_path the/ControlNet/models/epoch=30-step=22226.ckpt --dump_path the/pretrained_models/my_controlnet_seg --image_size 512 --prediction_type epsilon

then models/config.py change:
self.basemodel = './pretrained_models/my_controlnet_seg'
I can use lora to fine-tune my controlnet_seg model~

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

2 participants