Training LoRA with Kohya (theory included!)

preview_player
Показать описание
Learn how to train your own LoRA model using Kohya.
In this tutorial, we will build a LoRA model using only a few images. We are going to understand the basic theory behind how neural network works, and will understand how to tweak the key parameters to achieve better results! Hope you enjoy :)

👀 Struggling to run Stable Diffusion locally? You can try DiffusionHub!
🤑Get 20% MORE DiffusionHub CREDIT using the link below or using the promo code LAURA20!

💬 Social Media:
____________________________________________________________________

🤙🏻 Learn More:

📰Article:

📌 Links:

00:33 What is a LoRA model
02:06 Build your database
02:48 Training images
04:22 Captioning (BLIP)
09:57 Regularization images
13:10 Choose your base model for training
16:09 Create folders to train the model
21:48 Theory: What is a Neural Network?
23:40 Theory: Batch
24:50 Theory: Epoch
25:20 Theory: Iterations, or Steps, or Repeat
26:00 Theory: Loss Function
26:49 Theory: Learning Rate
27:43 Set the key training parameters
32:12 How to use a LoRA model

#aiart #stablediffusion #generativeart #lora
Рекомендации по теме
Комментарии
Автор

The reason "l4ura" works better then "laura" ist that the instance prompt should be a unique string. It is my understanding that the model already has an "idea" of "laura" since it has propably been trained with 100.000s of pictures of women (or other "things") called laura or associated with the name laura and mixes those in. So to achieve a highest possible likeness try using a prompt which is unlikely to have been used somewhere else in the dataset. Even "l4ura" might not be quite obscure enough, though i am sure it already works much better. Maybe also add your modified last name in or something more uncommon. This could be special enough to not get mixed up with things the model already "knows". Maybe it does not make a huge difference anymore. But it cant hurt, I guess. :)
Anyway: This is the best Lora-Tutorial I have come across so far and I am only halfway through. Thanks for explaining so thorougly. It helps a lot. :)

caliginousstarfire
Автор

Little Summary of différents Steps. And Thank you very much, i try a lot of vidéo and your are reallygreat
05:00 Step 1 Blip Captioning
06:27 Step 2 Rename Caption for better Results
09:11 Step 3 Folder Préparation / Dataset Preparation
13:10 Step 4 Source Model
16:09 Step 5 Tool -> DataSet Preparation
20:30 Step 6 Check Info in Training Folder Tabs, change model output name
27:50 Step 7 Training Parameters Tabs

lemonsieurxav
Автор

Wow, this video is absolutely amazing! I am so impressed with how thoroughly it explains all the topics related to Lora training in stable diffusion. The content is incredibly informative and has definitely made me more aware of the subject. However, since it's quite a long video, I would suggest breaking it down into chapters. This way, viewers can easily navigate through different sections and find specific information they're interested in. Overall, fantastic job on creating such an informative and comprehensive video!

beker-aman
Автор

Great video - very informative.

There's been a few changes with the newer version of Kohya_SS, and while the fundamentals are pretty much the same, a deeper dive into the newer version would be awesome if you can ever find the time.

Thanks. 🙂

mcdazz
Автор

This is really well done. I really appreciate that you explain the parameter choices with respect to the theory of neural networks. There are so many parameters to choose and without understanding what they actually are, its hard to understand the meaning of the choices. So a tip of the hat to you L4ura . . . is is a well done explanation of a complex topic.

AlexPolsky
Автор

Would you, could you, please do this for style/artstyle training? Thank you.

generalawareness
Автор

I trained a few times for fun already and this tutorial is seriously great! A lot of things that I were not sure about are explained in more detail so I can better wrap my head around it. I also like the presentation and clear explanations. While I like me some memes I am really glad that you don't put silly stuff in your video and keep it very focused.

wynard
Автор

Thank you for the tutorial, and especially for doing it in English! Your voice is easy on the ears. I’ve been watching a lot of Lora tutorials for the past few weeks, and I feel like your video has been most effective. Subbed! Oh, and thank you for the illustrations!

RabbitBleed
Автор

I have been watching 3 videos together to learn how to make a LoRa. In the end I liked your video best. Its not too technical, while still giving a lot of information. I have learned a lot and just finished making my first LoRA and its very exciting!

TheOriginalOrkdoop
Автор

Laura, as i could see, the captions that you created didnt get used in the training. The console showed the error message when you started training. This is because you must set the file extension to ".txt". This setting is in kohya, Lora, Training, Parameters, Basic, "Caption Extension". Set it to ".txt"

srmeister
Автор

Those little extra explanations which pros forget all the time and I end up confused are not missing here. Thanks for going so much into detail.

AndreasHofstaetter
Автор

Just want to thank you for the simplest, clear and easy to understand explanation on how to create a LoRa model "locally" using Kohya! I was finally, after previous attempts, to create a great LoRa Model. It took 3 days on my limited video RAM laptop and I don't know why it created 30 epochs when I set the settings at 15, but it was successful.

VinceVincincinious
Автор

Definitely one of the best videos I’ve seen so far in regards to explaining neural networks and how to train models for stable diffusion. Thank you so much!

JeremySeiner
Автор

Great video on lora training! Others I've watched are all over the place and never explained it as concisely or left out info. Well done!

alicekibbe
Автор

Your videos are amazing! You explain everything so clearly and have been so helpful to me learning how to use StableDiffusion. I plan to make a LoRA for my wife and surprise her with some (what I hope will be) awesome images!

EmeranceLN
Автор

Thanks Laura and L4ura for your Lora explanations. I have tried a few times and got mid results. Thanks to your efforts I understand a lot more now. Best Wishes and much love. I'm off to play with my newly attained knowledge. Keep up the good work!

addermoth
Автор

I'm just learning about LoRAs and your tutorial is absolutely the best I've seen. 👍 Keep up the good work!

russadams
Автор

Thanks for this! Loras by Laura! I've been waiting for a good tut on this and you delivered and then some!

oberdoofus
Автор

Finally a tutorial that doesn't say: now click here, do that, click there, type this.... thank you lora ... laura... l4ura🎉

ForChiddlers
Автор

Well done! I'm only 2 weeks in from knowing nothing and have learned a thing or two from this channel. Subbed.

Thank you Laura. Very good pace and clear explanations.

mojoejojo