Quickstart: Training a stable diffusion model using kohya_ss GUI

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024
  • Quickstart tutorial on how to train a Stable Diffusion model using kohya_ss GUI.

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

  • @AMPKlickitat
    @AMPKlickitat ปีที่แล้ว +3

    Hey, just wanted to thank you for your posts. This is complex stuff, a lot of it only cursorily explained in docs, and these videos are incredibly helpful. Big thumbs up👏

  • @AiEdgar
    @AiEdgar ปีที่แล้ว +2

    This is incredible thank you so much for making this available I used your old repo with kohya before re the GUI it looks much easier now.

  • @bhupendraking9370
    @bhupendraking9370 ปีที่แล้ว +1

    How to train SDXL model with large number of images? like example 30k images

  • @botlifegamer7026
    @botlifegamer7026 ปีที่แล้ว +1

    I know this might be outdated not but for some reason When I train using BF16 I can only use a batch size of 1 or I get out of memory. even at 512,512. for a test. How are you able to do 8 I have a 3090 by the way. followed your settings im using BF16 and 23 images.

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

    Thank you for the tutorial Bernard. I was wondering if it was possible to generate a smaller file (I am thinking LoRA size with dreambooth results). Do you know if that can be accomplished?

  • @RobertMichael-jh6fu
    @RobertMichael-jh6fu 10 หลายเดือนก่อน

    I have a 4090, if i don't care about speed, should i do float precision for better accuracy? whats a good basic config for highest accuracy?

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

    hello does kohya_ss upload my training images to a server or something? i have alot output traffic if i try to train with it

  • @sinceredeku
    @sinceredeku ปีที่แล้ว +1

    "None of the inputs have requires_grad=True. Gradients will be None" i constantly get this Error. Do you know what this could be ?

  • @pastuh
    @pastuh ปีที่แล้ว +1

    How much RAM does your graphics card have? :)

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

    I have a folder with 200+ images in it, and Kohya_SS says that there are not images in that folder.

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

      You need to put in a folder containing the folder with the images, aka the parent folder of the image folder.

  • @Mahiro01
    @Mahiro01 ปีที่แล้ว +1

    anything specific for reg images? i made a bunch images with the class promp i want to use , but when i try training says reg images: 0

  • @MrLaura34
    @MrLaura34 ปีที่แล้ว +1

    Warning: Python version 3.10.9 is recommended.
    venv folder already exists, skipping creation...
    El sistema no puede encontrar la ruta especificada.
    Do you want to uninstall previous versions of torch and associated files before installing? Usefull if you are upgrading from torch 1.12.1 to torch 2.0.0 or if you are downgrading from torch 2.0.0 to torch 1.12.1.

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

    Can you give us New Tutorial they is change everything now :(

  • @fortesmentum1719
    @fortesmentum1719 ปีที่แล้ว

    My problem is installing Kohya_ss. I get the error that Python can't be found, even though I have Python installed for Automatic1111

    • @pm146
      @pm146 ปีที่แล้ว +1

      Make sure that both "py --version" and "python --version" both work and return the same value in CMD. If they don't, try swapping around the root python folder and the python/Scripts folder in your environment variables. If they aren't there at all... Add them

    • @fortesmentum1719
      @fortesmentum1719 ปีที่แล้ว

      @@pm146 Thank you for the advice - which I will look into - although I am not very hand with commands etc:-)

  • @adriangpuiu
    @adriangpuiu ปีที่แล้ว +3

    i cant use it , when i want to train always shouts GPU needed and i have 24GB Vram cuda dll installed .... Traceback (most recent call last):
    File "F:\kohya_ss\train_db.py", line 1229, in
    train(args)
    File "F:\kohya_ss\train_db.py", line 832, in train
    accelerator = Accelerator(gradient_accumulation_steps=1, mixed_precision=args.mixed_precision,
    File "C:\Users\xxxx\anaconda3\envs\kohya\lib\site-packages\accelerate\accelerator.py", line 355, in __init__
    raise ValueError(err.format(mode="fp16", requirement="a GPU"))
    ValueError: fp16 mixed precision requires a GPU
    Traceback (most recent call last):
    File "C:\Users\xxx\anaconda3\envs\kohya\lib
    unpy.py", line 196, in _run_module_as_main
    return _run_code(code, main_globals, None,
    File "C:\Users\xxx\anaconda3\envs\kohya\lib
    unpy.py", line 86, in _run_code
    exec(code, run_globals)
    File "C:\Users\xxx\anaconda3\envs\kohya\Scripts\accelerate.exe\__main__.py", line 7, in
    File "C:\Users\xxx\anaconda3\envs\kohya\lib\site-packages\accelerate\commands\accelerate_cli.py", line 45, in main
    args.func(args)
    File "C:\Users\xxxx\anaconda3\envs\kohya\lib\site-packages\accelerate\commands\launch.py", line 1104, in launch_command
    simple_launcher(args)
    File "C:\Users\xxxxxx\anaconda3\envs\kohya\lib\site-packages\accelerate\commands\launch.py", line 567, in simple_launcher

    • @lehikot7600
      @lehikot7600 ปีที่แล้ว

      Did you find a solution for this? I was having the same issue where fp16 wasn't seeing my GPU with a different training repo.

    • @adriangpuiu
      @adriangpuiu ปีที่แล้ว

      @@lehikot7600 not yet but will have another go tomorrow and in case I’ll make it work will let you know. Just comment tomorrow to remind in case I forget …

    • @adriangpuiu
      @adriangpuiu ปีที่แล้ว +2

      @@lehikot7600 i installed automatic1111 in the end and made it work with xformers and all shebangs ....

    • @lehikot7600
      @lehikot7600 ปีที่แล้ว

      @@adriangpuiu I got it working too once I reinstalled python. Now I need to figure out how to install deepspeed on windows so I can offload part of the work to my CPU from my gpu lol....

    • @adriangpuiu
      @adriangpuiu ปีที่แล้ว +1

      @@lehikot7600 oh man, freaking accelerate was driving me nuts at the beginning now its fine, but frankly i dont know if youll see much of improvement from that deep speed module.. ill dig into it now that you told me :)))

  • @Endangereds
    @Endangereds ปีที่แล้ว

    what would be the "Repeats" for 16, 30 and 100 Images? any logic we can use to choose "Repeats" based on images?

    • @BernardMaltais
      @BernardMaltais  ปีที่แล้ว +1

      It depend on your subject... but typically the more images the fewer repeats you need. It really is a trial and error for each model. I wish there was a single easy config... but alas there is not.

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

    Kohya's interface changed so much since this tutorial that I can't follow it.

  • @Nick-vd7cg
    @Nick-vd7cg ปีที่แล้ว

    so i did 3 epochs and i got 3 output files, why ?

    • @BernardMaltais
      @BernardMaltais  ปีที่แล้ว

      By default the trainer save every epoch. You can configure how many epoch to save instead of 1. Look in the training tab.

  • @rondovk
    @rondovk ปีที่แล้ว +1

    grateful for video but damn that audio makes me wanna die

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

    I came pretty far

  • @MrLaura34
    @MrLaura34 ปีที่แล้ว

    many error!!!!!

  • @minbari73
    @minbari73 ปีที่แล้ว

    "quickstart"

  • @vivavideo-videofilmer
    @vivavideo-videofilmer 4 หลายเดือนก่อน

    horrible tutorial

  • @Sabrinahuskydog
    @Sabrinahuskydog ปีที่แล้ว +4

    Your audio is fucking awful with an echo in it. We can't understand you. I just had to mute it and use CC instead.

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

      ANNNNNDDDD he's eating

  • @digitalroguesocietyexperim9679
    @digitalroguesocietyexperim9679 ปีที่แล้ว

    "None of the inputs have requires_grad=True. Gradients will be None" i constantly get this Error. Do you know what this could be ?

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

      ignore that. it always says that