Patrefans
Furkan Gözükara from patreon
Furkan Gözükara patreon

Full Workflow For Newbie Stable Diffusion Trainers For SD 1.5 Models & SDXL Models Training With DreamBooth & LoRA

🕑 Added 2024-02-17 01:11:42 +0000 UTC
Full Workflow For Newbie Stable Diffusion Trainers For SD 1.5 Models & SDXL Models Training With DreamBooth & LoRA
Full Workflow For Newbie Stable Diffusion Trainers For SD 1.5 Models & SDXL Models Training With DreamBooth & LoRA
Full Workflow For Newbie Stable Diffusion Trainers For SD 1.5 Models & SDXL Models Training With DreamBooth & LoRA
Full Workflow For Newbie Stable Diffusion Trainers For SD 1.5 Models & SDXL Models Training With DreamBooth & LoRA
Full Workflow For Newbie Stable Diffusion Trainers For SD 1.5 Models & SDXL Models Training With DreamBooth & LoRA
Full Workflow For Newbie Stable Diffusion Trainers For SD 1.5 Models & SDXL Models Training With DreamBooth & LoRA

Comments

dxqbYD

I am on your discord now if it's easier to share there. Same name

dxqbYD

I still wasn't happy with some of my results, so I went back to an SD1.5 Dreambooth repository that gave me perfect results, and compared it to Kohya with my parameters, Kohya with your SD15 parameters... And confirmed it. The results of this repository are MUCH better. I am starting to think that there is something wrong with the Kohya training script. If you are interested, I can share my results with you. I have used publicly available training data. Here is the rep: https://github.com/InB4DevOps/diffusers/tree/main/examples/dreambooth Unfortunately, it doesn't support SDXL and I would like to get the same quality in SDXL

Furkan Gözükara

i tested standard lora extract it was really good

dxqbYD

I've just used extract_locon.py to convert DB to Lycoris, because that's what I have been using for SD15, and it looks great at rank 32. I remember that malcolmrey had a comparison that Lycoris has less quality loss than standard Lora, but I don't know. Might be something worth investigating. I'm gonna stop bothering you now, thank you again :)

Furkan Gözükara

true

Sarath Reddy

I am working recently on this Kohya GUI new version. I guess in the data preparation you need to give input images and pretrained model name or path is -- your base model it can hyperealism.safetensors or realisticVisionV60B1.safetensors.. etc..!! which one you want to have as a base model. Thanks.

Furkan Gözükara

I agree. I will make a new tutorial hopefully. I am waiting guy to finalize updates. he makes so much right now

Art

Hi Furkan! With the new kohya interface everything is getting more complicated... for example, I didn't figured out where to set full precision Float (FP32) for SD1.5 training, and now there are two fields whwrw to input training images (one on the Dataset preparation tab and one more next to "Pretrained model name or path"... I think this version is a bit confusionary... Can you do a screenshot to make this more clear (a screenshot with numbered steps like the one about lora extraction...)?

Furkan Gözükara

hello. sorry for late reply. if you have different aspect ratio please try these 2. first try to crop them all into 1024x1024 and train without bucketing. second train without cropping and without bucketing. third train with bucketing. and compare each other. when you have different resolutions yes you need same resolution reg images. so you can give raw images and let script to crop. or use 1536x1536 highest resolution pre-prepared images SDXL 1.0 i find still best for realism. SDXL 0.9 also good. but SDXL 1.0 loras may not work good on SDXL 0.9

Furkan Gözükara

yes it may cause over training. i had like 15 images.

So Sha

Don’t you think the model gets overtrained with 160 repeats? How many images are in your dataset in this scenario?

mike oxmaul

A lot of my images would be better off cropped at 1536*768 for example. So I should enable bucketing? Do I need mixed regularisation images? If training a person with face, is it best to just not use classification images? Is the Sdxl 1.0 base still best? I saw you do a comparison with the 0.9 which also looked good. I thought this would mean we can't use Sdxl 1.0 lora etc though.

Furkan Gözükara

it is hard to find reg images for object so you can skip it. but lets say you are training a chair and you collected chair images. only chair as caption should be sufficient

Furkan Gözükara

built in config in Kaggle loads best params for Kaggle. so use it. number of epochs in options. set it 1. and set repeating 200. i explained this logic in this kaggle video : https://youtu.be/16-b1AjvyBE

Art

Thank you Furkan... we were waiting for this one! So, to recap everything for a SD1.5 training on Kaggle, I try to make a list apart from the extensive stuff in this article: - Notebook to use: kohya-sdxl-lora-training-on-a-free-kaggle-notebook_v15.ipynb - Settings: /kaggle/working/Kaggle_SD_15.json (or do we have to use one of these: https://www.patreon.com/posts/very-best-config-97381002?) - Training Images: 768x768 n images of the subject - Reg Images: /kaggle/working/man_5200_imgs_768x768.zip OR /kaggle/working/woman_5200_imgs_768x768.zip - Training Images Repeats: 200 - No of epochs: 1 (where to set this one??? do we have to set this in the parameters tab???) - No of saving steps: [(training_images_number)x200x1x2]+1 From this list the step that confuses me is: - what json config to use? the one builth-in in kohys Kaggle notebook or one of most recent configurations files? - do we have to set manually epochs? can you explain where to set 1 epoch properly (in the previous parameters setting the epochs fiels was always "1"...)

Casper Smit

I want to train an object. Do I need reg images? And do they also need captioning?


More Creators