Compared Effect Of Image Captioning For SDXL Fine-tuning / DreamBooth Training for a Single Person, 10.3 GB VRAM via OneTrainer
Added 2024-03-28 02:34:51 +0000 UTCCompared Effect Of Image Captioning For SDXL Fine-tuning / DreamBooth Training for a Single Person, 10.3 GB VRAM via OneTrainer, WD14 vs Kosmos-2 vs Ohwx Man
Join discord and tell me your discord username to get a special rank : SECourses Discord
Check all the images below to see used training dataset and used captionings.
All trainings are done on OneTrainer Windows 10 with newest 10.3 GB Configuration : https://www.patreon.com/posts/96028218
A quick tutorial for how to use concepts in OneTrainer : https://youtu.be/yPOadldf6bI
The training dataset is deliberately a bad dataset. Because people can’t even collect this quality. So I do my tests on a bad dataset to find good settings for general public. Therefore, if you improve dataset quality with adding more different background and clothing images, you will get better quality.
Used SG161222/RealVisXL_V4.0 as a base model and OneTrainer to train on Windows 10 : https://github.com/Nerogar/OneTrainer
The posted example x/y/z checkpoint comparison images are not cherry picked. So I can get perfect images with multiple tries.
Trained 150 epochs, 15 images and used my ground truth 5200 regularization images : https://www.patreon.com/posts/massive-4k-woman-87700469
In each epoch only 15 of regularization images used to make DreamBooth training affect
As a caption for 10_3_GB config “ohwx man” is used, for regularization images just “man”
For WD_caption I have used Kohya GUI WD14 captioning and appended prefix of ohwx,man,
For WD_caption and kosmos_caption regularization images concept, just “man” used
For Kosmos-2 batch captioning I have used our SOTA script collection. Kosmos-2 uses as low as 2GB VRAM with 4-bit. You can download and 1 click install it here : https://www.patreon.com/posts/sota-image-for-2-90744385
After Kosmo-2 batch captioning I added prefix photo of ohwx man, to the all captions via Kohya GUI
SOTA Image Captioning Scripts For Stable Diffusion: CogVLM, LLaVA, BLIP-2, Clip-Interrogator (115 Clip Vision Models + 5 Caption Models) : https://www.patreon.com/posts/sota-image-for-2-90744385
You can download configs and full instructions of this OneTrainer training configuration here : https://www.patreon.com/posts/96028218
We have slower and faster configuration. Both of them are same quality and slower configuration uses 10.3 GB VRAM.
Hopefully full public tutorial coming within 2 weeks. I will show all configuration as well
The tutorial will be on our channel : https://www.youtube.com/SECourses
Training speeds are as below thus durations:
RTX 3060 — slow preset : 3.72 second / it thus 15 train images 150 epoch 2 (reg images concept) : 4500 steps = 4500 3.72 / 3600 = 4.6 hours
RTX 3090 TI — slow preset : 1.58 second / it thus : 4500 * 1.58 / 3600 = 2 hours
RTX 3090 TI — fast preset : 1.45 second / it thus : 4500 * 1.45 / 3600 = 1.8 hours
CONCLUSION
Captioning reduces likeliness and brings almost no benefit when training a person with such medium quality dataset. However, if you train an object or a style, captioning can be very beneficial. So it depends on your purpose.













Comments
currently instead of this i am testing masked training and it looks like very powerful
Furkan Gözükara
2024-04-02 12:12:04 +0000 UTCIt's crazy seeing people recommend captioning for face training. We learned this back in 1.5 and it never changed, these models just don't need help understanding what a person is. I will say however that I have found massive benefits from background removal (white) since the beginning of DB. Mainly for stability across different faces and biased backgrounds (I can even see a bias of background leading lines leaking over from your dataset). Flexibility goes way up and the need for captions is even less (since theres only one of the same thing in every image), and training converges quicker and on smaller datasets. It needs to be HIGH quality background removal though, like Photoroom
Dallin Mackay
2024-04-02 09:37:25 +0000 UTCye you can try, you can also do ohwx style, captioner_result
Furkan Gözükara
2024-03-31 09:51:34 +0000 UTCHow would you recommend manually captioning your training images for best results? Ohwx man, portrait shot, wearing a black shirt, etc etc What would you do?
mike oxmaul
2024-03-31 08:13:42 +0000 UTCyes in that case you can use such. i find captioning really useful at style training
Furkan Gözükara
2024-03-28 02:48:39 +0000 UTCCosmos looks best. Fair to say captioning would help with training a person if you've got several poses captioned? Ohwx man smiling etc
mike oxmaul
2024-03-28 02:39:45 +0000 UTC