BrushNet icon indicating copy to clipboard operation
BrushNet copied to clipboard

Doesn't converge when I train with my own data

Open zf-666 opened this issue 2 years ago • 10 comments

Loss has been shaking., Wish I could see a picture of the correct loss,

zf-666 avatar Aug 13 '24 13:08 zf-666

Me too. It confuses me a lot. Have you solved it? @zf-666 Or could the authors help us please? @juxuan27

CharlesGong12 avatar Aug 16 '24 03:08 CharlesGong12

How did you build your dataset?

SmileTAT avatar Aug 19 '24 13:08 SmileTAT

hi @juxuan27 @yuanhangio, thanks for such great work! Could you plz share some details on training Brushnet_sdxl? such as how many epochs, how long it takes, how many GPU used? I just use one zip package in BrashData just want to realize the training detail. Butt I find the loss fluctuation even if 11000+ steps passed (one zip has 10000 images, with batch size 4, around 4epoch).  I guess the fluctuation loss is related to the random timestep during training. but how to identify when the model is converged if loss has little guidance?  image  image  similar issue seem in (https://github.com/TencentARC/BrushNet/issues/35), but didn't find some explanation on the loss

MrWH123 avatar Aug 20 '24 07:08 MrWH123

I fix the problem by use 'fp16' and 'fp16 vae' , but another problem arises, my dataset is on the dark side, but the resulting data, while fitting the distribution, is always on the light side

zf-666 avatar Aug 20 '24 13:08 zf-666

hi @juxuan27 @yuanhangio, thanks for such great work! Could you plz share some details on training Brushnet_sdxl? such as how many epochs, how long it takes, how many GPU used? I just use one zip package in BrashData just want to realize the training detail. Butt I find the loss fluctuation even if 11000+ steps passed (one zip has 10000 images, with batch size 4, around 4epoch).  I guess the fluctuation loss is related to the random timestep during training. but how to identify when the model is converged if loss has little guidance?  image  image  similar issue seem in (#35), but didn't find some explanation on the loss

Hi, which resolution of images did you used for training? Only 1024x1024 or random resolution? Appreciate for the reply!

xduzhangjiayu avatar Aug 21 '24 02:08 xduzhangjiayu

hi @juxuan27 @yuanhangio, thanks for such great work! Could you plz share some details on training Brushnet_sdxl? such as how many epochs, how long it takes, how many GPU used? I just use one zip package in BrashData just want to realize the training detail. Butt I find the loss fluctuation even if 11000+ steps passed (one zip has 10000 images, with batch size 4, around 4epoch).  I guess the fluctuation loss is related to the random timestep during training. but how to identify when the model is converged if loss has little guidance?  image  image  similar issue seem in (#35), but didn't find some explanation on the loss

Hi, which resolution of images did you used for training? Only 1024x1024 or random resolution? Appreciate for the reply!

1024x1024 for SDXL

MrWH123 avatar Aug 26 '24 06:08 MrWH123

I fix the problem by use 'fp16' and 'fp16 vae' , but another problem arises, my dataset is on the dark side, but the resulting data, while fitting the distribution, is always on the light side

could you share your training hyper-parameters and loss figure?

MrWH123 avatar Aug 26 '24 06:08 MrWH123

@yuanhangio @juxuan27 there are only about 5-10 images in own data set, can brushnet converge?? how many images at leat should I prepare??

shaoyandea avatar Sep 07 '24 08:09 shaoyandea

I use BrushData as my dataset, but in some data missing "width" in .tar file, so the training process is failed. Is anyone know how to fix this in train_brushnet.py to skip this sample and continue training? Thanks so much!

xduzhangjiayu avatar Sep 10 '24 02:09 xduzhangjiayu

I fix the problem by use 'fp16' and 'fp16 vae' , but another problem arises, my dataset is on the dark side, but the resulting data, while fitting the distribution, is always on the light side

could you share your training hyper-parameters and loss figure?

Hi, did you solve it? Could you please share some results images? Thanks!

xduzhangjiayu avatar Sep 26 '24 01:09 xduzhangjiayu