Training LoRA with Kohya (theory included!)

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 มิ.ย. 2023
  • 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!
    Link: diffusionhub.io?fpr=laura17
    💬 Social Media:
    [Discord] / discord
    [Patreon] patreon.com/IntelligentArt?ut...
    [Instagram] / lacarnevali
    [TikTok] www.tiktok.com/@lacarnevali?i...
    ____________________________________________________________________
    🤙🏻 Learn More:
    / membership
    / lauracarnevali
    📰Article:
    / how-to-fine-tuning-a-m...
    📌 Links:
    GitHub Kohya: github.com/bmaltais/kohya_ss
    CivitAI: civitai.com
    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

ความคิดเห็น • 298

  • @caliginousstarfire
    @caliginousstarfire 10 หลายเดือนก่อน +59

    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. :)

    • @LaCarnevali
      @LaCarnevali  10 หลายเดือนก่อน +11

      Thank you so much! It actually makes more sense! Pinned ;)

    • @Leadstar1985
      @Leadstar1985 10 หลายเดือนก่อน +1

      Попробуйте ещё датасет из лиц в формате png с прозрачным фоном

    • @addermoth
      @addermoth 10 หลายเดือนก่อน +2

      With my limited knowledge this is also my understanding. I usually try to add not just numbers but special characters so the AI can completely differentiate from anything it may have been trained on.

    • @Scrapemist
      @Scrapemist 10 หลายเดือนก่อน

      What if I want to make use of the idea of what to model already knows? Like further fine tune the likeness of a celerity. Does this also need a unique identifier?

    • @Mobay18
      @Mobay18 9 หลายเดือนก่อน

      It depends on what you want to do. If the model has a lot of data for "laura", it will take a lot of time to train over that, but at the same time, you could benefit from the training as "laura", since the data may contain a lot that can mix with your data. You might end up with a lot of different poses, styles and what ever the latent space have learned from the world "laura". Training "l4ura" will just take less time since that word is not represented so much in the latent space, but you may get less variety and ultimately if you train long enough, the "l4ura" word will mostly produce your input pictures.

  • @ianminto6315
    @ianminto6315 10 หลายเดือนก่อน

    Wow I didnt expect a quick rundown with graphs. Thank you!

  • @generalawareness101
    @generalawareness101 10 หลายเดือนก่อน +18

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

  • @tecnopoesia
    @tecnopoesia 9 หลายเดือนก่อน

    Very informative video! Thank you very much! I will really rewatch this.

  • @oberdoofus
    @oberdoofus 9 หลายเดือนก่อน +1

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

  • @johnriperti3127
    @johnriperti3127 8 หลายเดือนก่อน +1

    Amazing videos, really clear and detailed, thank you Laura

  • @latent-broadcasting
    @latent-broadcasting 10 หลายเดือนก่อน

    Thanks so much! I've watched many videos about loras and I think this is the best explained one. Helped me a lot

  • @jzilla1234
    @jzilla1234 10 หลายเดือนก่อน +23

    Lora by Laura

    • @pooppoop831
      @pooppoop831 6 หลายเดือนก่อน +1

      😂😂

    • @savannahmercedes2666
      @savannahmercedes2666 หลายเดือนก่อน +1

      Lora of Laura by Laura

    • @ImproMooray
      @ImproMooray 9 วันที่ผ่านมา

      About time someone made that joke… 10 months ago

  • @RabbitBleed
    @RabbitBleed 10 หลายเดือนก่อน +3

    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!

  • @alicekibbe
    @alicekibbe 9 หลายเดือนก่อน

    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!

  • @Marcus_Ramour
    @Marcus_Ramour 9 หลายเดือนก่อน

    Fantastic video, very clear with just the right amount of detail to get me started down this path. Many thanks for sharing.

  • @beker-aman
    @beker-aman 9 หลายเดือนก่อน +11

    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!

  • @JeremySeiner
    @JeremySeiner 5 หลายเดือนก่อน

    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!

  • @russadams3008
    @russadams3008 4 หลายเดือนก่อน +1

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

  • @FAICES
    @FAICES 4 หลายเดือนก่อน

    Thank you 🎉 Perfect overview and hands on 💪 learned a lot

  • @AlexPolsky
    @AlexPolsky 9 หลายเดือนก่อน +5

    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.

  • @yourfriend631
    @yourfriend631 3 หลายเดือนก่อน

    Thank you! It's the first video i watch with such deep theory description

  • @goranthoren5522
    @goranthoren5522 9 หลายเดือนก่อน

    Amazing knowledge you're sharing, thank you so much!

  • @antonognyev1348
    @antonognyev1348 9 หลายเดือนก่อน

    Amazing video, Laura! Thank you very much!

  • @robinhahn6987
    @robinhahn6987 3 หลายเดือนก่อน

    Exactly what I have been looking for! This video is excellent: it makes so many thing every so clear. Thank you Laura!! ❤❤❤ I will finally endeavour to make my own LoRAs....

  • @74Gee
    @74Gee 8 หลายเดือนก่อน

    That was an absolutely fantastic demo

  • @francisco_williams
    @francisco_williams 4 หลายเดือนก่อน

    Incredible video!!! I understood almost all the theory, and that's pretty much. You have a new subscriber

  • @icedzinnia
    @icedzinnia 6 หลายเดือนก่อน

    This video is so valuable. Thank you for being brief but thorough, and using plain language. I really appreciate it. I will probably be watching it multiple times as my go-to for LoRAs. Even though my interface is different than yours by the time my comment is made, your explanations made it easy for me to follow anyways and find what I need.

  • @wynard
    @wynard 9 หลายเดือนก่อน +5

    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.

  • @comfyuiadrian
    @comfyuiadrian 6 หลายเดือนก่อน

    Thank you so much with the wonderful tutorial!

  • @stevietee3878
    @stevietee3878 10 หลายเดือนก่อน

    Excellent video, clearly describing the workflow !

  • @adrienlequilleuc6014
    @adrienlequilleuc6014 10 หลายเดือนก่อน

    thank you laura for all the great content 🥰

  • @TheOriginalOrkdoop
    @TheOriginalOrkdoop 8 หลายเดือนก่อน

    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!

  • @howardcrow
    @howardcrow 4 หลายเดือนก่อน

    best LoRA model video I found - thanks for this.

  • @anduvo
    @anduvo 10 หลายเดือนก่อน

    The best explanation of how learning rates work, that I have seen so far. Very useful video, thank you.

  • @flowwang4591
    @flowwang4591 6 หลายเดือนก่อน

    you are so wonderful at explaining everything.

  • @srmeister1
    @srmeister1 8 หลายเดือนก่อน +6

    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"

  • @kallamamran
    @kallamamran 6 หลายเดือนก่อน

    I love this video. Awesome descriptions!!!

  • @ahmedtremo
    @ahmedtremo 9 หลายเดือนก่อน

    such an underrated channel, great video thanks

  • @EmeranceLN13
    @EmeranceLN13 9 หลายเดือนก่อน +4

    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!

  • @JanBarkmann
    @JanBarkmann 6 หลายเดือนก่อน

    Thank you for this very good video. You have explained everything very well and clearly. I'm going to try it out right now.

  • @lemonsieurxav
    @lemonsieurxav 3 หลายเดือนก่อน +2

    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

  • @ParvathyKapoor
    @ParvathyKapoor 10 หลายเดือนก่อน +1

    Thank you Laura for the tips of Lora

  • @AndreasHofstaetter
    @AndreasHofstaetter 2 หลายเดือนก่อน

    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.

  • @timothymaggenti717
    @timothymaggenti717 9 หลายเดือนก่อน

    I realize you did this a month ago, but so much of this is out of date already, wow. Time fly's in the Ai tech world. I hope you will take the time to update this video, you did a fantastic job. You obviously have more patients than I do to read all the garbally goop stuff. I just want something simple, and I hope you delivered, it's still training on the new SDXL model so not 20 min. Mine says 2 hours. We will see if it worked. Thanks Laura for your hard work.

  • @marcc8942
    @marcc8942 3 หลายเดือนก่อน

    best video I've seen so far. You are the best!

  • @sibi_Ca
    @sibi_Ca 10 วันที่ผ่านมา

    Hey Laura :) I'm so happy to stumbled upon your channel. Your explanations and energy are beautiful as you are.
    I'm in love 🥰Take care and keep shining bright

  • @lucianodaluz5414
    @lucianodaluz5414 10 หลายเดือนก่อน +1

    You are the best. The only who really explain the things (and probably the only who really knows on TH-cam). Can you make a video explaining how the IA reconstruct the image from the noise? I mean, something like, Noise x Pixels relationship? Thanks for everything.

  • @Xavi-Tenis
    @Xavi-Tenis 17 วันที่ผ่านมา

    best tutorial for lora training , by far, thanks

  • @VinceVincincinious2
    @VinceVincincinious2 หลายเดือนก่อน

    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.

  • @TulsaDrones
    @TulsaDrones 6 หลายเดือนก่อน

    This was such a helpful video! Thank you so much, subbed for more schooling.

  • @HanSolocambo
    @HanSolocambo 9 หลายเดือนก่อน

    I've been struggling to get good results with Dadaptation and the more recent prodigy (very hard to find info on the latter). Could you please someday have a look at those training optimizers that are supposed to help big time the calibration of learning rates ? It's hard to configure (at least for me so far) and the training time compared to a basic LoRA seems insane (but I'm sure I got a few things wrong thus my asking).
    Thanks for your lovely tutorials. You really explain all that nicely.
    Cheers.

  • @benakhovan184
    @benakhovan184 10 หลายเดือนก่อน

    NGL your videos about how to use and train image generation models are the best

  • @dkamhaji
    @dkamhaji 9 หลายเดือนก่อน

    Are Loras only used in Stable diffusion and comfy? Or are there other AI softwares that can use them? Just wondering. Thanks for your vid’s Laura!

  • @addermoth
    @addermoth 10 หลายเดือนก่อน +2

    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!

    • @IdiomofSad
      @IdiomofSad 9 หลายเดือนก่อน

      How did it go?

  • @shallowandpedantic2320
    @shallowandpedantic2320 10 หลายเดือนก่อน

    Thanks, this was helpful and easy to follow.

  • @tsvetomir98
    @tsvetomir98 10 หลายเดือนก่อน

    Best Kohya tutorial!

  • @jeralynbea7184
    @jeralynbea7184 9 หลายเดือนก่อน +1

    Hi Laura, I really like your videos, it is very helpful. One question, may I know how many GB of VRAM you have to run this training? I only have 4GB currently and intend to buy a new RTX. Hence, the question. Thank you!

  • @isaacnaughton5206
    @isaacnaughton5206 4 หลายเดือนก่อน

    If you had a large batch of images all taken from the same session, such as your 'red hoodie' set, you could use a text modification program such as sed or AWK to do a bulk update of keywords of things common to all pictures. For example, you could add in 'earrings' to all pictures.

  • @tonatiuhsilva1859
    @tonatiuhsilva1859 9 หลายเดือนก่อน +1

    Amazing video, thank you so much for the tutorial, I have a question in my case around 5% of the portraits I created looks like me, should I use these new "photos" and placed them in the new regularization images, or do I need to add them in the training images for getting better and accurate/results?

    • @LaCarnevali
      @LaCarnevali  7 หลายเดือนก่อน

      Regularization images should not include photos of yourself. You can use them for training, only if they are actually good.

  • @HanSolocambo
    @HanSolocambo 10 หลายเดือนก่อน

    Thanks very helpful tutorial. Although I'd advise you to install the extension WD14 tagger, it's enormously better than CLIP (or Danbooru) to generate helpful vocabulary to help describe the dataset images.

  • @grandjjohn4352
    @grandjjohn4352 8 หลายเดือนก่อน

    good job. thanks

  • @youssefguessous2762
    @youssefguessous2762 10 หลายเดือนก่อน

    Amazing ! Could you make one for architectural styles and may be design in general ?

  • @freneticfilms7220
    @freneticfilms7220 3 หลายเดือนก่อน

    Do more videos!! You are great!

  • @iampcvfx
    @iampcvfx 10 หลายเดือนก่อน

    thank you....and keep going😀👍

  • @ForChiddlers
    @ForChiddlers 10 หลายเดือนก่อน +3

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

  • @fullflowstudios
    @fullflowstudios 10 หลายเดือนก่อน +1

    I was exited to learn the right button function to generate indefinitely and than investigate in a statistical (“inverse AI”) way the differences in output for a category prompt like “modern design” between the different models. HIGHLY POLITICAL !!

    • @addermoth
      @addermoth 10 หลายเดือนก่อน

      Me too, never seen that before

  • @tecnopoesia
    @tecnopoesia 9 หลายเดือนก่อน

    That tip of "generate forever" was a mindblown for me. 😄

  • @mojoejojo6675
    @mojoejojo6675 10 หลายเดือนก่อน +4

    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.

  • @damasoroma
    @damasoroma 5 หลายเดือนก่อน

    Hi Laura, Thanks a million for your efforts and your tutorial, I watched so many tricks thanks to your video!
    I was wondering I could I create a specific part of a body
    I would like to focus on man's chest (muscles and hair) and I was wondering if I need to takejust chest training images or the full body pictures of a man. And what about regularization pics? Should I take just chest or face or the full body? I'm a bit confused. Thanks a million!

  • @philippecapitani
    @philippecapitani 8 หลายเดือนก่อน

    Good photos it's the best way, your tutorial with good photos = perfect ;p

  • @botlifegamer7026
    @botlifegamer7026 10 หลายเดือนก่อน

    If you want better results you can set your Network Rank also to 50-256 this will also make your model size bigger but will give you more accurate results to you or help. And Thanks your video was also a good help to training models.

  • @simonetruglia
    @simonetruglia 6 หลายเดือนก่อน

    Grazie per il video, molto utile :)

  • @bobwinberry
    @bobwinberry 5 หลายเดือนก่อน +1

    Dang, I'm at 9:18 in the video and have no idea where or how to download the DreamBooth/Lora/FolderPreparation git/program. I have LoRa in Stable Diffusion A1111 - does that work ? Anyway, great videos!

  • @isGoofy
    @isGoofy 9 หลายเดือนก่อน

    Thank you for your tutorial, I'm gonna try this asap! I have a question, could I use the lora trained with my photos to fit in different style? Like make it cartoony or anime style using it through different models or should I train my lora model with images that already resemble the style I would like to use?

    • @LaCarnevali
      @LaCarnevali  9 หลายเดือนก่อน +1

      You can do both: (1) you can train a ckpt with your realistic photos and use a Lora to change the style, (2) can train a Lora with your photos already transformed in the style you want

  • @Satscape
    @Satscape 7 หลายเดือนก่อน +1

    All these comments and no one has said...
    So, you've made a Laura Lora, Laura? 😁

  •  4 หลายเดือนก่อน

    Excellent tutorial for someone who is an AI enthusiast and is just starting out. Do you intend to make videos about ComfyUI?
    Thank you very much.

  • @DhikaPraditya
    @DhikaPraditya 8 หลายเดือนก่อน

    Hi, I would like to ask. I have a character sheet with different poses and perspectives. I would like to make a LoRA out of it. When making a LoRA we need to chose a model right. My question is that, is there any model that is neutral which can retain the style of the character sheet when I generate images with stable diffusion? Is there any way I can do that? Thank you

    • @LaCarnevali
      @LaCarnevali  8 หลายเดือนก่อน

      Would probably go with the base model :)

  • @matteospace
    @matteospace หลายเดือนก่อน

    Thanks for sharing this useful video, I am curious about your GPU setup (VRAM, n gpus, model) since it seems pretty fast, I tried searching in older videos but I could not find that mentioned. Since my setup with two Tesla T4 (16 gb each) is much slower than yours, and I want to understand if that is a problem of configuration on my side. Thanks in advance.

  • @titusfx
    @titusfx 7 หลายเดือนก่อน +1

    🎯 Key Takeaways for quick navigation:
    00:00 🧠 Fine-tuning means generating a new model from an already trained model to improve performance or adapt it for a specific task.
    01:09 📊 Understanding the main parameters in a neural network, such as in Stable Diffusion, helps in making informed decisions for model training.
    03:00 🖼️ For training a Laura model, you need training images and regularization images. Training images represent the subject, and regularization images represent the class.
    05:04 📝 Captioning images is important for training; you can use Koya to create image descriptions.
    08:57 🧞 Generating regularization images, even in large numbers, significantly improves model performance and diversity.
    15:09 ⚙️ Setting up Koya's parameters, including the source model, training data folders, and prompts, is crucial before training a model.
    19:30 🧰 Preparing training data in Koya creates the necessary structure for training, including folders for images, logs, and model output.
    21:18 🎯 Understanding neural networks and batch training helps optimize the training process and improve model accuracy.
    25:12 🔄 An epoch in neural network training is the process of going through all batches of data. Iterations refer to one update of the model's parameters within an epoch.
    25:51 📉 The goal of training a neural network is to minimize the loss function, which represents the model's performance. This involves finding the lowest point in the function, ideally the global minimum.
    26:44 🚶‍♂️ The size of steps taken toward the minimum during training is determined by the learning rate. It's essential to strike a balance between a high learning rate for faster convergence and a low learning rate for precision.
    27:52 💼 Training parameters include batch size (number of data batches), the number of epochs, learning rate, mixed precision (for speed and memory optimization), and more.
    30:07 📈 Learning rate schedulers adjust the learning rate during training, with options like cosine scheduling or constant rate. The choice depends on whether you're fine-tuning or training from scratch.
    31:11 💡 The max resolution setting should match the image resolution used for training in models like KoYaGAN. It's important for generating high-quality images.
    32:19 🧩 To use a trained model with Stable Diffusion, you'll need to link the model file generated during training to the Stable Diffusion web UI, allowing you to generate images with specific prompts.

  • @user-ip5om6jk5h
    @user-ip5om6jk5h 2 หลายเดือนก่อน

    thank u very much!

  • @LeSingeDeMars
    @LeSingeDeMars 9 วันที่ผ่านมา

    Hi,
    I'm pretty new to generative stuff and I have difficulties to get a good framing. Could LoRa be a way to teach SD some filmmaking vocabulary?
    If so, how would you set a training? Many trainings one after another, each with a bunch of pictures with a specific shot, then another specific shot, and another, etc. Or goods captions could be enough for one big training?

  • @jr-wg6os
    @jr-wg6os 10 หลายเดือนก่อน +4

    The small white page next to picking the model in the lora menu is to find and pick your custom model, edit: it's great you talk about regularization images not many youtubers talk about how beneficial they are when creating loras, and some suggest to not use them which is fair but the loras are much better when they are used

    • @SantoValentino
      @SantoValentino 10 หลายเดือนก่อน

      My personal Lora and girlfriend’s aren’t trained with aregularization folder and look perfect. Maybe I’ll try again for fun!

    • @jr-wg6os
      @jr-wg6os 10 หลายเดือนก่อน

      @SantoValentino same actually but it's helped when I have had less clear images to work with

    • @equilibrium964
      @equilibrium964 10 หลายเดือนก่อน +1

      @@jr-wg6os I tried to use reg images yesterday, but somehow I'm unable to prompt the subject ... I get only very vague similarities to the face I tried to train. Any idea what could cause this?

    • @EagleHunter410
      @EagleHunter410 10 หลายเดือนก่อน +2

      @@equilibrium964 I just had the same problem... trained on myself and the images are nothing like me, I have to specifically point out my skin colour, hair colour and all sorts of basica details which I didn't put in captions (so I shoulldn't have to prompt them). Only after doing that does it start to very slightly resemble me. Doing it without the reg images it instantly looks 100x more like me... Not sure what I'm missing. If you work it out let me know please!

    • @jr-wg6os
      @jr-wg6os 10 หลายเดือนก่อน +1

      @@equilibrium964 sometimes it's also the model your using to generate the images I've noticed "REALISTIC cartoon/anime" models are much more flexible in terms of generating likenesses but worse at things like skin tones and details, but it also matters how clear the pictures and so on, for instance I noticed much better results with images closer to 512,512 or 768,768 then if inuse 4k images even though you can enable buckets I seem to get better results with more regular quality images then high Def ones.

  • @casuffacommeci
    @casuffacommeci หลายเดือนก่อน

    hi, Thanks for your tutos.
    May I know the trick to have the dark mode? Thanks 🙂

  • @colorscompletely
    @colorscompletely 10 หลายเดือนก่อน +4

    Great video, I was waiting for this after your last Kohya video... A small notes, think at the end of the video the training parameters section (27:55 ish) are not from Dreambooth LoRA, rather only from Dreambooth, and that's why there is no settings appearing for Network Rank and Network Alpha... also the Caption Extension setting is empty and this would lead the training not loading captions.. might want to fix that, even on LoRA you still need to enter TXT or whatever extension you are using (in fact in your terminal it says "No caption found for your 25 images") ... also I think bf16 works with Nvidia 30 and 40 series well... I would also be interested in your thoughts on what to set for Class Prompt when training an artistic style, for example a style of photography from particular artist.

    • @JavierPortillo1
      @JavierPortillo1 10 หลายเดือนก่อน

      Hi, for styles I would guess that you can use "style" as the class prompt because when you prompt for a specific style you can use "in the style of " or " style" so now you would prompt for " style".

    • @JavierPortillo1
      @JavierPortillo1 10 หลายเดือนก่อน

      Or simply don't use a class prompt neither a keyword so your lora always applies when referenced in the prompt

  • @akilesh1989
    @akilesh1989 7 หลายเดือนก่อน

    Very detailed tutorial until I got stuck from 9.13 where you explain how to get more images using the base Realistic vision model. I cannot find a model named "Realistic vision V2.0" in CivitAI. It would be very useful if you could provide references on how and where to create these images?

    • @LaCarnevali
      @LaCarnevali  7 หลายเดือนก่อน

      The model is this one: civitai.com/models/4201/realistic-vision-v51 (now updated to version 5.1)
      However, you should use the model you want to use as base for your training. If you want to train a realistic model this is perfect.

  • @fab_spaceinvaders
    @fab_spaceinvaders 25 วันที่ผ่านมา

    veramente un signor video, complimenti

  • @tsentenari4353
    @tsentenari4353 7 หลายเดือนก่อน

    Question about the regulation images:
    Does it make the lora better if I choose a smaller class? So for example, "European woman", instead of just "woman"?
    How narrow or wide should I make the class, for best results?

    • @LaCarnevali
      @LaCarnevali  7 หลายเดือนก่อน

      I think it could improve but it 's not going to make much difference. I've never tried it tbh - let me know ;)

  • @user-kh2zk2rn7i
    @user-kh2zk2rn7i 2 หลายเดือนก่อน

    Hello Laura,
    I followed your excellent presentation step by step, but I cannot obtain models under the "safetensors" extension! In the "Models" folder there is only one .json file...
    Do you have a solution to offer me?
    Thanking you.

  • @TCISBEATHUB
    @TCISBEATHUB 10 หลายเดือนก่อน +1

    💛💛💛💛💛 my favorite ai teacher

  • @marcoatmac
    @marcoatmac 9 หลายเดือนก่อน

    Hi Laura, thank you! At 16:14... I haven't the "Tool" tab for Lora, I have this "Tool" only on Dreambooth tab o_O (mac M1) Do you need something else?

    • @LaCarnevali
      @LaCarnevali  9 หลายเดือนก่อน +1

      not sure why. Anyway, I don't think you will be able to run a training on M1...you mac will blow up lol! Better using Colab/RunPod

    • @marcoatmac
      @marcoatmac 9 หลายเดือนก่อน

      @@LaCarnevali In the end, after all the work, it crashed :( RunPod for life!

  • @mat5844
    @mat5844 6 หลายเดือนก่อน +1

    This is so helpful. Would u mind sharing a bit about Ur computer specs? Crying in macOs rn and thinking about building my own windows-run rig. Ty ❤

    • @LaCarnevali
      @LaCarnevali  5 หลายเดือนก่อน

      NVIDIA RTX 3090. Yeah the mac is not the best, but you could run SD on external GPU, like colab, runpod, think diffusion, diffusion hub

  • @CharisTsevis
    @CharisTsevis 7 หลายเดือนก่อน

    Ciao Laura,
    innanzitutto complimenti per tuo channel. Veramente utilissimo. Volevo chiederti se ce l'hai fatta di correre Kohya sul Mac. É possibile di farcela? Ho perso ore ed ore a cercare soluzioni e volevo soltanto sapere se é possibile o no.
    Se no quale sarrebbe l'alternativa ideale online?
    Grazie in anticipo.

    • @LaCarnevali
      @LaCarnevali  7 หลายเดือนก่อน

      Ciao! Impossibile fare un training sul Mac, perche' richiede NVIDIA GPU - che il mac non supporta. Quindi ti consiglierei di provare Colab/RunPod/PaperSpace, oppure puoi usare DiffusionHub/ThinkDiffusion. Questi sono tutti a pagamento. Colab e' il piu' economico (10euro al mese), ma da qualche problema di connessione. DiffusionHub puoi provarlo gratis per 30 minuti e se ti dovesse servire ho un codice sconto (LAURA20)

    • @CharisTsevis
      @CharisTsevis 7 หลายเดือนก่อน

      @@LaCarnevali grazie mille, Laura.
      Proverò le alternative.
      Di nuovo complimenti.

  • @MikeBurnsArrangedAccidents
    @MikeBurnsArrangedAccidents 9 หลายเดือนก่อน

    Instance Prompt and Text prompt fields seem to be gone from the current interface. Makes me wonder how to assign keywords now.

    • @LaCarnevali
      @LaCarnevali  9 หลายเดือนก่อน

      You still have it in the "depracated" tab. You can also add this under the Lora> Training > Folders > "training comments": trigger: xxxx
      swapping xxxx with the trigger word

  •  9 หลายเดือนก่อน

    Hi Laura -- Excellent tutorial! I have a broader question: I just installed Kohya following your other video, and when I run it, my gui looks different. Particularly puzzling, is that I don't have the same tabs as you, including even the main tab names--mine are labeled Dreambooth, Lora, Textual Inversion, etc., instead of Dreambooth Lora, Dreambooth TI, and so on. Additionally, I don't have other tabs in the same place as you, which makes finding the parameters difficult. I downloaded from the bmaltais page you link on last night (July 29, 2023). Any hint to why the differences? Am I missing some addon or configuration file?
    Thank you!

    • @LaCarnevali
      @LaCarnevali  9 หลายเดือนก่อน +2

      Hi, it can be that the folder has been updated since I made the video - I ll have a look into it

    • @neuronaut6719
      @neuronaut6719 9 หลายเดือนก่อน

      @@LaCarnevali I was also confused as my Kohya layout is different than yours, but I did find it, the folder preparation, class and instance prompts and what you show in a "Deprecated" tab. Why is this stuff deprecated now? Are instance prompts and class names not used anymore? Thanks and wonderful tutorial!

    • @LaCarnevali
      @LaCarnevali  9 หลายเดือนก่อน +1

      @@neuronaut6719 True - I think they are going to replace that tab with something else in the future. You still need to prepare the folders as per the video, and you can use the depracated tab for that :)

    • @TheOriginalOrkdoop
      @TheOriginalOrkdoop 8 หลายเดือนก่อน

      There was an update! I had the same issue, but I have been following along with this video and 2 other videos combined and figured it out. 13:06 in the top row of tabs choose the "LoRA" tab and follow the video until 16:09 when she clicks "tools". The "tools" tab is in the middle row of tabs next to the "training" tab. Then, as others have said, click the "Deprecated" tab. You will be able to follow the rest of the video from here. I just made my first LoRa and its kind of working, but I am going to play around some more. Its pretty fun!

  • @clement4565
    @clement4565 10 หลายเดือนก่อน

    Your Lora model works really great. That’s not something easy to do. Mine sucks 😂 but I will try making one with your tutorial

  • @RyokoChanGamer
    @RyokoChanGamer 9 หลายเดือนก่อน

    hello, I've been watching some videos of lora creation tutorials, your video was the best I've seen so far... I've tried before but my characters weren't good, at weight 1 they get buggy, and below 7 they lose their characteristics, force a lot of the poses of the images used in the creation too, I would like to know how to correct this... another doubt I have is whether in the regularization folder they also need to have images with dimensions other than 512x512, because I am trying to create an anime character, and The images I collected have different sizes and there is no way to cut them all, do you also have any tips for the character to be more flexible... thanks

    • @LaCarnevali
      @LaCarnevali  9 หลายเดือนก่อน +1

      you probably need to change the training parameters, maybe you are overtraining? Try using less epochs and increase/decrease the batch size. If you are trining SDXL, try using Prodigy optimizer

    • @RyokoChanGamer
      @RyokoChanGamer 9 หลายเดือนก่อน

      @@LaCarnevali i'll try, thanks

  • @Finofinissimo
    @Finofinissimo 10 หลายเดือนก่อน

    amazing tuto

  • @adam01120
    @adam01120 10 หลายเดือนก่อน

    Great tutorial. Grazie. 30:24 was my favorite part.

    • @adam01120
      @adam01120 10 หลายเดือนก่อน

      Not sure why, but my LoRa didn't work with regularization images. Without reg it worked. With time hopefully I'll figure out how to improve its versatility.

  • @edwardrhodes4403
    @edwardrhodes4403 2 หลายเดือนก่อน

    Great video! I have a qeuestion, if I wanted to have the lora be of a person in different poses (headshot, stadning up full body shown, side view seated etc. basically any positon) How would I accomplish this? I want my modal to have the same proportions in different generations

    • @LaCarnevali
      @LaCarnevali  หลายเดือนก่อน

      need to train the model using pictures of that person in different positions

  • @dishigawaa8480
    @dishigawaa8480 5 หลายเดือนก่อน

    Thanks

  • @labs4change
    @labs4change 10 หลายเดือนก่อน

    Amazing content grazie, a question the regularization images can I take 2500 images of myself and use them? or is it best to use the ones generated by the model? Thanks

    • @LaCarnevali
      @LaCarnevali  10 หลายเดือนก่อน +1

      Regularization images have to represent the class, and should not be representing yourself :)

  • @ursusss
    @ursusss 5 วันที่ผ่านมา

    Thanks!

    • @LaCarnevali
      @LaCarnevali  วันที่ผ่านมา

      Thankss, I'm glad it helped ☀️

  • @fed3919
    @fed3919 10 หลายเดือนก่อน

    Hey Laura great channel, if you put chapters on longer video like this one it will be easier to follow.

    • @LaCarnevali
      @LaCarnevali  10 หลายเดือนก่อน +1

      Hi Fed, noted, will update :)

  • @_4uu4
    @_4uu4 10 หลายเดือนก่อน

    great vid