XLabs-AI / x-flux

Apache License 2.0
1.65k stars 118 forks source link

How to prepare data for controlnet training #58

Closed ymlab closed 2 months ago

ymlab commented 3 months ago

Is there a detailed description?

kadirnar commented 3 months ago

doc: https://github.com/XLabs-AI/x-flux?tab=readme-ov-file#training-dataset

Example Dataset: https://huggingface.co/datasets/kadirnar/fluxdev_controlnet_16k

ymlab commented 3 months ago

@kadirnar Hi, have you successfully trained the controlnet for flux?

kadirnar commented 2 months ago

@kadirnar Hi, have you successfully trained the controlnet for flux?

yes

mashijie1028 commented 1 month ago

@kadirnar Hi! Thanks for your answer. Could you please provide some demo codes about the data loader of this example dataset https://huggingface.co/datasets/kadirnar/fluxdev_controlnet_16k?

mashijie1028 commented 1 month ago

Oh! I figured it out!

Just the one-line code:

from datasets import load_dataset
ds = load_dataset("kadirnar/fluxdev_controlnet_16k")
Oguzhanercan commented 1 day ago

@kadirnar Hi, have you successfully trained the controlnet for flux?

yes

Hi, how many samples did you use to train a controlnet and can you mention about your compute-time resources?

kadirnar commented 1 day ago

@kadirnar Hi, have you successfully trained the controlnet for flux?

yes

Hi, how many samples did you use to train a controlnet and can you mention about your compute-time resources?

Yes, I trained it. However, it doesn't support multi-GPU. Therefore, I couldn't train it with a large dataset. That's why the results are not good.

Oguzhanercan commented 1 day ago

@kadirnar can you mention about the number of samples and compute device - time which fails in your case, I want to compare it with mine and estimate if I can scale it or not.

kadirnar commented 1 day ago

@kadirnar can you mention about the number of samples and compute device - time which fails in your case, I want to compare it with mine and estimate if I can scale it or not.

I think they have added multi-GPU support to the diffusers library.

Oguzhanercan commented 1 day ago

Do you remember how many iteration did you train it :)