Install Kohya on Windows and Mac! Quick & Easy

Поділитися
Вставка
  • Опубліковано 24 сер 2024
  • In this quick and easy tutorial, we guide you step-by-step on how to install Kohya locally on your Windows or Mac system.
    📣📣📣I have just opened a Discord page to discuss SD and AI Art - common issues and news - join using the link: / discord
    🤙🏻 Follow me on Medium to get my Newsletter:
    - Get UNLIMITED access to all articles: / membership
    - Laura: / lauracarnevali
    - Intelligent Art: / intelligent
    📌 Links:
    GitHub Kohya: github.com/bma...
    00:32 Install Kohya ss on Windows
    04:47 Install Kohya ss on Mac
    #aiart #stablediffusion #generativeart

КОМЕНТАРІ • 101

  • @mattstroud4585
    @mattstroud4585 Рік тому +7

    I had been struggling to make sense of this install, and this was super concise and easy to follow, thank you so much!

  • @John_Krone
    @John_Krone Рік тому +4

    Clear instructions. Thank you so much

  • @MikeBurnsArrangedAccidents
    @MikeBurnsArrangedAccidents Рік тому +3

    The installation process has changed so much since the robot did a tutorial 6 months ago, to the point that his instructions are no longer helpful. This is an essential update. I just followed the steps and it worked. Hitting 5 and not 4 launches Kohya now and it seems that choosing Torch 2 foregoes the need to install CudNN8.6 and I'm being warned off of it when given the option to install it. Those are the only differences so far. Thank you so much for posting! Liked and subbed.

  • @marcoatmac
    @marcoatmac Рік тому

    Sei diventata il mio idolo! L'unica che spiega per benino le cose anche su MAC 🙏Grazie mille

  • @futuresoldier5990
    @futuresoldier5990 3 місяці тому

    Thank you!

  • @mostafasamir9472
    @mostafasamir9472 6 місяців тому

    Thanks for the video. Straight to the point!

  • @VeinTrippin
    @VeinTrippin Рік тому

    Looking at this video many times and just attempting to install Kohya I was able to make sense of it thank you for much for helping me install this for my own LoRAs

  • @queasyweasel
    @queasyweasel Рік тому

    Ah thank you! I was watching other tutorials on how to do other stuff with Kohya and didn't realize I had to run setup the first time 😅

  • @JL-sy2me
    @JL-sy2me Рік тому

    fast and easy. Thank you so much!

  • @lorenalimaskate
    @lorenalimaskate Рік тому

    thank youuuuuuuuuuuuu! god this process has been annoying, but finding this video was very helpful.

  • @Sweet_Reverb
    @Sweet_Reverb Рік тому

    Great tutorial, thanks!

  • @DangQuanTa
    @DangQuanTa 4 місяці тому

    thank you so much!

  • @MaximilianPs
    @MaximilianPs Рік тому +1

    Ottimo Lavoro 😁👍

  • @VVixusz
    @VVixusz 4 місяці тому +2

    just errors when running setup.bat ... could anyone help???

  • @itanrandel4552
    @itanrandel4552 10 місяців тому +1

    Thanks

  • @mewmee007
    @mewmee007 Рік тому

    thank you very much from Thai.😍😍😍

  • @240clay98
    @240clay98 4 місяці тому

    once installed, how do I launch kohya on my mac? what do I type into the terminal?

  • @PlayerGamesOtaku
    @PlayerGamesOtaku 4 місяці тому

    hi, do you also have a video tutorial on how to create a Lora?

    • @LaCarnevali
      @LaCarnevali  4 місяці тому

      ua-cam.com/video/xholR62Q2tY/v-deo.htmlsi=4f0Ry2YwlnvDbjL9

  • @awunnenb
    @awunnenb 5 місяців тому

    nice video, thank you

  • @zuriel4783
    @zuriel4783 Рік тому

    Thanks for the tutorial, straight to the point and super easy to follow!

  • @gustavofernandes6612
    @gustavofernandes6612 Рік тому +1

    Kohya buttons not working on mac. I thought it was because needed the configuration file, then I subscribed for you patreon to download the files but the open button doesn't work at all... I tried some solutions from Reddit but the venv folder doesn't contain the Scripts folder. How do I fix it?

    • @LaCarnevali
      @LaCarnevali  Рік тому

      It depends on what Mac you are using - better using google colab to train

  • @WhoIsBellaLuna
    @WhoIsBellaLuna Рік тому +5

    Can’t thank you enough for your videos! They are so incredibly helpful and clear! Do you have any advice regarding these errors on Mac after clicking train?
    Warning: LD_LIBRARY_PATH environment variable is not set.
    NotImplementedError: No operator found for memory_efficient_attention_forward with inputs:

    • @LaCarnevali
      @LaCarnevali  Рік тому +1

      Hi! I've never faced this issue tbh - have you looked into Reddit? Or in the GitHub page? I have seen other people facing the same :/

    • @mitch8541
      @mitch8541 10 місяців тому

      I have the same issues on my Mac. Have you found a solution in the meantime?

  • @dannyreds
    @dannyreds Місяць тому

    How to do video face swap, please?

  • @catarmyac8216
    @catarmyac8216 11 місяців тому

    thank you very much~~

  • @azuki2919
    @azuki2919 Рік тому +1

    This is the error I get
    "Warning: Python version 3.10.9 is recommended.
    Creating venv...
    Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
    The system cannot find the path specified.
    Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases.
    The system cannot find the path specified.
    Python was not found; run without arguments to install from the Microsoft Store, or disable this shortcut from Settings > Manage App Execution Aliases."

    • @gluttonium
      @gluttonium 8 місяців тому

      same problem here. I uninstalled the current python (3.10.6) and installed 3.10.9 and restarted the PC and tried it again, didnt work... :(
      Im stuck at this problem.

  • @1salacious
    @1salacious Рік тому

    Very helpful thanks 👍! I see @ 04:35 you have a 3090. I have a 3090 also, and I'm on Windows 10. I just reinstalled kohya_ss after a fresh Win 10 install and the kohya_ss install menu has updated again. I used powershell. The menu (02:48 in your vid) now offers the step to install bitsandbytes-windows. According to the bitsandbytes-windows webpage, there is the additional requirement of CUDA and an Ampere GPU (satisfied by the 3090). I'm wondering if 1) you've installed CUDA; 2) if so do you need to install Visual Studio first; 3) have you tried bitsandbytes-windows? And does the CUDA / MS VisualStudio / bitsandbytes-windows make a difference to the time of the LORA training? Thanks

    • @LaCarnevali
      @LaCarnevali  Рік тому +1

      I have installed CUDA, and you need to have Visual Studio (it's one of the requirements). I havent tried bitsandbytes. It takes me 20 minutes to run a training (however, this depends on the settings you are using, e.g., epochs, batch, steps, etc)

  • @gustavofernandes6612
    @gustavofernandes6612 Рік тому

    Very simple tutorial and sweet to follow... Good job.

  • @DMDTSIDIOUS
    @DMDTSIDIOUS 6 місяців тому

    i need your help

  • @davedm6345
    @davedm6345 Рік тому

    Thankyou, i be training Lora and when save models it is on .json format? and i put the safestensors option

  • @nguyenanharchitect
    @nguyenanharchitect 9 місяців тому

    Thank you Laura so much ! , I tried to follow your instructions but when training I got the error: No data found. Please verify arguments (train_data_dir must be the parent of folders with images) / . How can i fix it ?

  • @godsofwar7766
    @godsofwar7766 6 місяців тому

    ImportError: cannot import name 'set_documentation_group' from 'gradio_client.documentation i have this problem and idk how to fix it i did everything like u but i still have this error

  • @kdeeuk
    @kdeeuk 4 місяці тому

    i cannot install kohya on my windows 11 i followed your instructions i keep gettin git is not a valid command in my command promt

    • @LaCarnevali
      @LaCarnevali  4 місяці тому

      You are probably in the wrong folder. you can navigate folders using the dir and ls commands

  • @alexandretamisier8150
    @alexandretamisier8150 4 місяці тому

    Hi ! I get this error when running the setup.bat Creating venv...
    C:\kohya\kohya_ss\setup\setup_windows.py:251: SyntaxWarning: invalid escape sequence '\g'
    "start cmd /k .\gui.bat --inbrowser", shell=True
    Traceback (most recent call last):
    File "C:\kohya\kohya_ss\setup\setup_windows.py", line 7, in
    import setup_common
    File "C:\kohya\kohya_ss\setup\setup_common.py", line 8, in
    import pkg_resources
    ModuleNotFoundError: No module named 'pkg_resources' Someone have found a way to figure this ? Thank you

    • @LaCarnevali
      @LaCarnevali  4 місяці тому +1

      Seems like you have the wrong version of Python, need to install the right version and try again.
      Install Python 3.10.11: www.python.org/ftp/python/3.10.11/python-3.10.11-amd64.exe
      During the installation process, ensure that you select the option to add Python to the 'PATH' environment variable.

    • @alexandretamisier8150
      @alexandretamisier8150 4 місяці тому

      @@LaCarnevali i had 2 python version installed on my computer including Python 3.10.11, i've removed everything and reinstalled only the Python 3.10.11 and it's working ! Thank a lot

  • @Ouioui971
    @Ouioui971 Рік тому

    Merci beaucoup…***

  • @CodyPyper
    @CodyPyper Рік тому

    I can't get it to start training on M1 Mac, a lot of device issues and cuda errors. Any tips?

    • @LaCarnevali
      @LaCarnevali  Рік тому +1

      not recommended. you should use GPU, e.g., colab/runpod

  • @user-qb1zb2gz4v
    @user-qb1zb2gz4v 11 місяців тому

    thanks, but after copying the link what is the next step please?

    • @LaCarnevali
      @LaCarnevali  11 місяців тому

      Training LoRA with Kohya (theory included!)
      ua-cam.com/video/xholR62Q2tY/v-deo.html

  • @backster4744
    @backster4744 Рік тому

    I tried following the tutorial but near the end when launching the gui I get the error 'headless: False' , followed by AttributeError: 'FieldInfo' object has no attribute 'in_' any ideas what it could be? :(

    • @LaCarnevali
      @LaCarnevali  Рік тому

      github.com/bmaltais/kohya_ss/issues/1253

  • @davidpoirier8725
    @davidpoirier8725 Рік тому

    Your install took 4 minutes. Mine took 88 minutes. I’m not on a potato. What am I doing wrong?

    • @LaCarnevali
      @LaCarnevali  Рік тому

      It was my second time installing the same so it took less as I had many requirements already installed. The first time took me 10/15 minutes maybe, or less.

  • @Loudtree
    @Loudtree Рік тому

    it's asking me if I want to use fp16, bf16 or fp8. What does that mean??

    • @LaCarnevali
      @LaCarnevali  Рік тому

      min 27:43: ua-cam.com/video/xholR62Q2tY/v-deo.html or look for "mixed precision" here: medium.com/intelligent-art/how-to-fine-tuning-a-model-with-kohya-e05922dc1033

  • @Fitzcarraldo92
    @Fitzcarraldo92 Рік тому

    Is Python 3.10.9 a dealbreaker? I had installed 3.10.6 for Stable diffusion. New to this so not sure what I should choose.

  • @therookiesplaybook
    @therookiesplaybook Рік тому

    Please do it for terminal as well

    • @LaCarnevali
      @LaCarnevali  Рік тому

      The terminal is in the computer. You just need to open the search bar (or windows start) and type terminal (mac) or command (windows)

    • @therookiesplaybook
      @therookiesplaybook Рік тому

      @@LaCarnevali I know that part but you do the mac install on that other app. Can you do the same tutorial but for terminal?

    • @LaCarnevali
      @LaCarnevali  Рік тому

      ​@@therookiesplaybook oh that's Warp - you can download it directly from their website www.warp.dev

  • @mitch8541
    @mitch8541 10 місяців тому

    Are you actually running Kohya_ss on mac? I can't get it working, keep getting the same error with CUDA over and over again, and for some reason nobody seems to have it running on Mac. If you do, please let me know how...!

    • @LaCarnevali
      @LaCarnevali  10 місяців тому +1

      nope, Windows only. Cannot run on Mac

    • @Jack2511
      @Jack2511 6 місяців тому

      Dang! How's it working on mine then?!@@LaCarnevali

  • @doomranger6047
    @doomranger6047 4 місяці тому

    Hi there.. any help would be appreciated. I got to the end of your install and I didn't get the link that I could paste. this is what warnings I got instead:
    WARNING Could not automatically configure accelerate. Please manually configure accelerate with the
    option in the menu or with: accelerate config.
    Exiting Python virtual environment.
    Copying accelerate config file to: /Users/rainthompson/.cache/huggingface/accelerate/default_config.yaml
    Setup finished! Run ./gui.sh to start.

  • @antoinedacremont3517
    @antoinedacremont3517 Рік тому

    Not working because of a upper version of python

  • @user-pc7ef5sb6x
    @user-pc7ef5sb6x Рік тому

    hey, CUDNN 8.6 is giving me a permission error. : permission declined

    • @LaCarnevali
      @LaCarnevali  Рік тому

      it works only if you have a NVIDIA 30X0/40X0 GPUs - can this be why?

    • @arslanahmed2087
      @arslanahmed2087 Рік тому

      Same error, 4080 gpu
      Did you find the solution?

  • @phoenixastra4429
    @phoenixastra4429 Рік тому

    for some reason my git clone isn't working, if anyone can help out I'd hella appreciate it

  • @mr.entezaee
    @mr.entezaee Рік тому

    I received several errors. A few other things. Can you teach me how to make Laura's model now?

    • @LaCarnevali
      @LaCarnevali  Рік тому +1

      Will post the video soon. What errors have you got?

    • @mr.entezaee
      @mr.entezaee Рік тому

      @@LaCarnevali Thankful . Where can I send it to you? Do you have Discord, can I send you a picture? I have deleted and reinstalled many times, but my problem is not solved... I am an amateur and I do not understand programming problems .... The English language is also weak... sorry. The concept may be misunderstood

    • @mr.entezaee
      @mr.entezaee Рік тому

      I had another question. Can't you train a Laura model with Dreambooth itself in Stable Diffusion? What is the difference between them and kohya? If I don't have kohya, is there still a way to make a Lora model?

    • @tinymushroom7076
      @tinymushroom7076 Рік тому +1

      you probably have a slightly older python version. i hade python 3.6 and tried to download kohya and it gave me a warning that it wasnt recommended. i went with it anyway and it gave me several errors. so i removed kohya, removed python and downloaded python 3.10.9 and it worked with zero errors.

    • @mr.entezaee
      @mr.entezaee Рік тому

      @@tinymushroom7076 If I update python, may I have problems with stable-diffusion?

  • @Colorlavie
    @Colorlavie Рік тому

    Hi, have you tried to run a training with macOS ? I think it will not work for most people if you stop here 😅

    • @OrbitMoonAlpha
      @OrbitMoonAlpha Рік тому

      it's me! installation on macOS is quite easy but can't even process a training successfully XD.

    • @Colorlavie
      @Colorlavie Рік тому

      @@OrbitMoonAlphaWhat the error message ?

    • @LaCarnevali
      @LaCarnevali  Рік тому

      What error do you get?

    • @LaCarnevali
      @LaCarnevali  Рік тому

      What error do you get?

    • @begensis
      @begensis Рік тому

      For me it crashed when it loaded and have to reboot from terminal every time.

  • @fullflowstudios
    @fullflowstudios Рік тому

    When are you going to take us further from this point on?

    • @michaelwilliams1678
      @michaelwilliams1678 Рік тому

      Same here I love your video ready for me as well. I little deeper dive would be great. So grateful for you regardless!!!❤

    • @LaCarnevali
      @LaCarnevali  Рік тому +1

      Yes, I m editing the LoRA training video :) will publish it asap. I wanted to put all together (installation and training) but it was too long!

    • @fullflowstudios
      @fullflowstudios Рік тому

      @@LaCarnevali I can imagine that’s also a lot of work if one wants to do it the Laura way. Concise and transparent like we all have come to love so much. Love the Kohya bg music track by the way!

  • @wtfchoir
    @wtfchoir 10 місяців тому

    why horror movie music?

  • @JoshuaKolden
    @JoshuaKolden Рік тому +1

    Audio mix is *very* low for your voice.

  • @garrickgreathouse
    @garrickgreathouse Рік тому

    Ugh.. Yet another in a long line of tutorials that don't work and also don't correspond to what I'm seeing. No mention of the other questions it asks during install.
    Do I choose No distributed training, multi-cpu, multi-gpu or TPU? Do I want to optimize my script with torch dynamo? Do I want to use Deep Speed? Should I use fp16, bf16, fb8 or none? Do I install bitsandbytes-windows during setup?
    your tutorial doesn't address any of these.

    • @LaCarnevali
      @LaCarnevali  Рік тому +1

      You're probably installing the old one. anyway, you can follow this tutorial by Olivio:
      ua-cam.com/video/9MT1n97ITaE/v-deo.html

    • @garrickgreathouse
      @garrickgreathouse Рік тому

      @@LaCarnevali I have already tried this tutorial before I found yours, and just like every experience I've had so far his examples, demonstrations and instructions don't match what I see when installing and ended up not working.

    • @LaCarnevali
      @LaCarnevali  Рік тому

      @@garrickgreathouse would you like to join the discord group and we can discuss this?

    • @LaCarnevali
      @LaCarnevali  Рік тому

      @@garrickgreathouse Have you downloaded kohya from bmaltis? github.com/bmaltais/kohya_ss

  • @lioleo-g1d
    @lioleo-g1d Рік тому

    You made a video to explain not very simple IT things.
    But videos are not always the best way to explain technical problems.
    There are other formats, such as written tutorials or step-by-step guides, that can be easier to follow and more effective.
    Videos can be difficult to follow, especially if they are not well-produced.
    Videos can be long and boring, and it can be difficult to find the time to watch them all.
    Videos can be difficult to pause and rewind, which can make it difficult to follow the instructions.
    The text on a video can be difficult to read, especially if it is small or if it is displayed on a computer screen.
    Videos can be difficult to share, which can make it difficult to get help from others.

    • @LaCarnevali
      @LaCarnevali  Рік тому +1

      Yes agree, thats why I m writing articles as well :)
      medium.com/intelligent-art

    • @Jack2511
      @Jack2511 6 місяців тому

      This video 100% worked for me and I'm so thankful to Laura for getting me this far. Off to her next video!

  • @sarahpeterson2702
    @sarahpeterson2702 11 місяців тому

    No operator found for `memory_efficient_attention_forward`