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
I had been struggling to make sense of this install, and this was super concise and easy to follow, thank you so much!
Clear instructions. Thank you so much
agree !
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.
Sei diventata il mio idolo! L'unica che spiega per benino le cose anche su MAC 🙏Grazie mille
Thank you!
Thanks for the video. Straight to the point!
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
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 😅
fast and easy. Thank you so much!
thank youuuuuuuuuuuuu! god this process has been annoying, but finding this video was very helpful.
Great tutorial, thanks!
thank you so much!
Ottimo Lavoro 😁👍
just errors when running setup.bat ... could anyone help???
same here... :(
Thanks
thank you very much from Thai.😍😍😍
once installed, how do I launch kohya on my mac? what do I type into the terminal?
hi, do you also have a video tutorial on how to create a Lora?
ua-cam.com/video/xholR62Q2tY/v-deo.htmlsi=4f0Ry2YwlnvDbjL9
nice video, thank you
Thanks for the tutorial, straight to the point and super easy to follow!
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?
It depends on what Mac you are using - better using google colab to train
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:
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 :/
I have the same issues on my Mac. Have you found a solution in the meantime?
How to do video face swap, please?
thank you very much~~
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."
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.
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
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)
Very simple tutorial and sweet to follow... Good job.
i need your help
Thankyou, i be training Lora and when save models it is on .json format? and i put the safestensors option
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 ?
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
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
You are probably in the wrong folder. you can navigate folders using the dir and ls commands
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
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.
@@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
Merci beaucoup…***
I can't get it to start training on M1 Mac, a lot of device issues and cuda errors. Any tips?
not recommended. you should use GPU, e.g., colab/runpod
thanks, but after copying the link what is the next step please?
Training LoRA with Kohya (theory included!)
ua-cam.com/video/xholR62Q2tY/v-deo.html
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? :(
github.com/bmaltais/kohya_ss/issues/1253
Your install took 4 minutes. Mine took 88 minutes. I’m not on a potato. What am I doing wrong?
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.
it's asking me if I want to use fp16, bf16 or fp8. What does that mean??
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
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.
mine worked and launched successfully with python 3.10.9
It should be fine
Please do it for terminal as well
The terminal is in the computer. You just need to open the search bar (or windows start) and type terminal (mac) or command (windows)
@@LaCarnevali I know that part but you do the mac install on that other app. Can you do the same tutorial but for terminal?
@@therookiesplaybook oh that's Warp - you can download it directly from their website www.warp.dev
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...!
nope, Windows only. Cannot run on Mac
Dang! How's it working on mine then?!@@LaCarnevali
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.
Not working because of a upper version of python
downgrade?
hey, CUDNN 8.6 is giving me a permission error. : permission declined
it works only if you have a NVIDIA 30X0/40X0 GPUs - can this be why?
Same error, 4080 gpu
Did you find the solution?
for some reason my git clone isn't working, if anyone can help out I'd hella appreciate it
Can you share the error?
I received several errors. A few other things. Can you teach me how to make Laura's model now?
Will post the video soon. What errors have you got?
@@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
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?
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.
@@tinymushroom7076 If I update python, may I have problems with stable-diffusion?
Hi, have you tried to run a training with macOS ? I think it will not work for most people if you stop here 😅
it's me! installation on macOS is quite easy but can't even process a training successfully XD.
@@OrbitMoonAlphaWhat the error message ?
What error do you get?
What error do you get?
For me it crashed when it loaded and have to reboot from terminal every time.
When are you going to take us further from this point on?
Same here I love your video ready for me as well. I little deeper dive would be great. So grateful for you regardless!!!❤
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!
@@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!
why horror movie music?
Audio mix is *very* low for your voice.
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.
You're probably installing the old one. anyway, you can follow this tutorial by Olivio:
ua-cam.com/video/9MT1n97ITaE/v-deo.html
@@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.
@@garrickgreathouse would you like to join the discord group and we can discuss this?
@@garrickgreathouse Have you downloaded kohya from bmaltis? github.com/bmaltais/kohya_ss
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.
Yes agree, thats why I m writing articles as well :)
medium.com/intelligent-art
This video 100% worked for me and I'm so thankful to Laura for getting me this far. Off to her next video!
No operator found for `memory_efficient_attention_forward`