Install Kohya on Windows and Mac! Quick & Easy

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 มิ.ย. 2023
  • 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/bmaltais/kohya_ss
    00:32 Install Kohya ss on Windows
    04:47 Install Kohya ss on Mac
    #aiart #stablediffusion #generativeart

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

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

    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

  • @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!

  • @JL-sy2me
    @JL-sy2me 11 หลายเดือนก่อน

    fast and easy. Thank you so much!

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

    Thanks for the video. Straight to the point!

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

    Clear instructions. Thank you so much

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

    Great tutorial, thanks!

  • @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 😅

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

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

  • @MikeBurnsArrangedAccidents
    @MikeBurnsArrangedAccidents 11 หลายเดือนก่อน +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.

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

    Thank you!

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

    Ottimo Lavoro 😁👍

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

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

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

    thank you so much!

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

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

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

    thank you very much from Thai.😍😍😍

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

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

  • @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)

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

    nice video, thank you

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

    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 ?

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

    thank you very much~~

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

    Thanks

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

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

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

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

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

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

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

      th-cam.com/video/xholR62Q2tY/w-d-xo.htmlsi=4f0Ry2YwlnvDbjL9

  • @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

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

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

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

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

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

    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

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

    No operator found for `memory_efficient_attention_forward`

  • @gustavofernandes6612
    @gustavofernandes6612 11 หลายเดือนก่อน +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  10 หลายเดือนก่อน

      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 9 หลายเดือนก่อน

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

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

    Merci beaucoup…***

  • @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.

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

      mine worked and launched successfully with python 3.10.9

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

      It should be fine

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

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

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

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

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

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

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

    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  3 หลายเดือนก่อน +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 3 หลายเดือนก่อน

      @@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

  • @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 11 หลายเดือนก่อน

      Same error, 4080 gpu
      Did you find the solution?

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

    i need your help

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

    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  3 หลายเดือนก่อน

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

  • @dannyreds
    @dannyreds 12 วันที่ผ่านมา

    How to do video face swap, please?

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

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

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

      Can you share the error?

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

    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  9 หลายเดือนก่อน +1

      nope, Windows only. Cannot run on Mac

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

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

  • @user-qb1zb2gz4v
    @user-qb1zb2gz4v 10 หลายเดือนก่อน

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

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

      Training LoRA with Kohya (theory included!)
      th-cam.com/video/xholR62Q2tY/w-d-xo.html

  • @azuki2919
    @azuki2919 11 หลายเดือนก่อน +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 7 หลายเดือนก่อน

      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.

  • @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?

  • @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

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

    Not working because of a upper version of python

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

      downgrade?

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

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

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

      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.

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

    why horror movie music?

  • @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!

  • @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:
      th-cam.com/video/9MT1n97ITaE/w-d-xo.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

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

    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.

  • @lioleo-g1d
    @lioleo-g1d 11 หลายเดือนก่อน

    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  10 หลายเดือนก่อน +1

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

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

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