It is very difficult to train ControlNet using the original dataset. #151
Replies: 2 comments 2 replies
-
Thanks so much for providing this @mattyamonaca . Currently this line: Fails for me as HF's |
Beta Was this translation helpful? Give feedback.
-
@mattyamonaca i have written a convert script to convert the HED model to safetensors and implemented a control net pipeline for HF diffuser that uses that. here the PR for that: i also implemented the training script for HF pixart controlnet. here is the PR for that: both for pixart alpha. you can try the converted dataset with that, this will train and save only the controlnet layers and you can use the provided script to generate validation images. can you share the converted dataset? thanks. |
Beta Was this translation helpful? Give feedback.
-
The current Controlnet training code seems to be designed specifically for use with ControlNet-Hed.
In particular, there are few instructions on how to prepare the data set, and you need to read the code and modify it for your own use in order to prepare the data.
Therefore, I created a simple script to convert HF's ControlNet training dataset (e.g., the training format used in Diffusers) for use with PixArt-alpha.
If necessary, I will refactor the code for more general use and submit a PR to be added to the "tools" directory.
Additionally, I can suggest a more generic "datasets/pixart-control.py".
Beta Was this translation helpful? Give feedback.
All reactions