-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Add Flux ControlNet #1813
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
Add Flux ControlNet #1813
Conversation
It looks very nice!It could be used for SD3.5 with a few more modifications. |
excellent work can you show example of dataset? if you could post some example of /path/to/dataset.toml taht would be amazing |
Thank you for this! We have confirmed that training can be done without any issues in Windows WSL environment with 512x512 resolution with 48GB VRAM. |
Thank you again for this great PR! I have a few questions. Do you think it's ok to add
Also, you said that you trained for 10,000 steps with gradient accumulation steps = 8. Did you specify 10,000 for the train steps (1,250 optimizing steps in actual) or 80,000 steps? |
Here!
After model
80,000steps. After 2000 x 8 steps, it seems validation eesults are converted. Train blocks are only |
Thank you for your suggestion!
Thank you for clarifying this as well. There are a lot of steps, but compared to how difficult it is to train FLUX.1, it's surprisingly few. |
@minux302 thanks a lot but an you give me few image example |
Hello, thank you very much for your work. Could you please provide an example of this file? |
Amazing news! @minux302, сould you please clarify if the sudden converge, where the model starts following the ControlNet image, only happened at the end of the 80,000 steps? |
@minux302 how to use the trained controlnet weight ?? any inference code for testing? |
@Johnson-yue try something from xlabs repo https://github.com/XLabs-AI/x-flux |
OK, Thanks |
Add Flux ControlNet
@minux302 Hi, have you ever encountered the following problem? F.linear(input, self.weight, self.bias) |
I implemented Flux.1 ControlNet, based on the x-flux implementation.
I trained canny training based flux1-dev. The images below are the test results of training on my own dataset. This implementation appears to be working.
Test Results
condition, result

Dataset
Training Settings
I trained full-scratch for ControlNet. bs=1, accumulation=8, steps=10000. 30~40hours by H100
deepspeed config