-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using a conda env instead of venv #1088
Comments
Technically you could install everything in conda and the use python kohya_gui.py to start the GUI... That would allow you to run without using a venv |
Hummm... Maybe not... I think some of the scripts might actually point to a local venv folder... I am not sure... |
Thanks for the quick response, I'm AFK right now but I'll test again tomorrow, would you mind if I sent you what issues I come up against here while I try doing that? |
I've been doing some tests, I managed to find out why
So I also tried running training from my Windows PC and copying the accelerate command. I run that copied command in Windows and it worked properly but when trying to run it in this linux server I get an error two.
and this is the error:
I am trying to follow the Traceback of the error but I can't seem to find anything, maybe you can see what to do or at least where to start looking. |
Try starting the GUI with: |
The |
UPDATE: I was able to run As for the 'tpu_env' error I followed some instructions on #564 and modified the default accelerate configuration YAML file at |
I am on Archlinux, so my python version is 3.11.8 and using conda can fix this. So I did this to make it run:
None of they setup scripts and such work, but they are not required. |
Yeah, IMO, all AI\ML projects should start using conda by default, because of all the version incompatibilities between python, torch, cuda, etc. Without using conda it's practically impossible to install 2 AI projects that use different versions of cuda, for example. Even with venv it's complicated. I don't think you can have both 11.x and 12.x CUDA versions installed on one system. And even on servers, spamming containers for every task is often tedious. Conda serves all of these problems in a few lines. I don't understand why people spend so much time writing complicated bash install scripts, when 90% of that code - a few conda commands can solve it. Literally @ballerburg9005 just showed all the commands one has to run to install it. And it's completely system agnostic, it will work on windows and linux alike. Not sure about MacOS, probably as well. So you just need to install miniconda, then these commands. And miniconda is there as well, you don't need to install the full fat anaconda. I didn't like it myself at first, did not understand the benefits, but now I definitely do. @ballerburg9005 thanks for the commands. I would however use You also need to install cuda though, and requirements_linux have torch install lines that dont work, so full set for me is:
It launched. Did not yet try training anything with it, will do soon. EDIT: Yeah it works, however it shows bitsandbytes missing libraries error. Could probably fix that. But ended up installing normally in a separate LXC container. I was getting CUDA OOM errors and only realize it was just a mistake in config (batch size 2, instead of 1) when I already swapped it with a non-conda install. Not sure if bitsandbytes warnings were of any real significance. |
Hi, is there a way I can setup repo to run from a conda environment instead of creating
venv
? I'm running on a limited linux server and cannot change the Python version to > 3.10.6 ... I tried creating the environment and installingrequirements_linux.txt
but I get the error:And although i can install the requirements.txt I still get errors when running gui.sh
The text was updated successfully, but these errors were encountered: