ControlNet-for-Diffusers icon indicating copy to clipboard operation
ControlNet-for-Diffusers copied to clipboard

finetuning model using diffuser

Open MahdiMohseni0033 opened this issue 2 years ago • 5 comments

does it possible to fine-tune this model using diffuser in this stage?

MahdiMohseni0033 avatar Mar 05 '23 07:03 MahdiMohseni0033

Do you mean train the ControlNet and keep the base model frozen? @MahdiMohseni0033

haofanwang avatar Mar 05 '23 07:03 haofanwang

Do you mean train the ControlNet and keep the base model frozen? @MahdiMohseni0033

it doesn't matter , I just customize this model for a specific task , and I followed the training stage in official ControlNet repository and I was faced with Cuda OOM Error I want to train it using RTX 3060 , and the reason which I wanted to use Diffuser , is using memory efficient technique like xformer to make it feasible to train it in GPU with less memory

MahdiMohseni0033 avatar Mar 05 '23 11:03 MahdiMohseni0033

This reply may help.

haofanwang avatar Mar 05 '23 11:03 haofanwang

This reply may help.

Thank you for responding kindly, but my primary inquiry is regarding how to train or fine-tune your code (ControlNet by diffuser). Do you have a training code available, or can you provide it to us?

MahdiMohseni0033 avatar Mar 05 '23 15:03 MahdiMohseni0033

Here is the training example. You just need modify a few lines.

haofanwang avatar Mar 06 '23 11:03 haofanwang