-
Notifications
You must be signed in to change notification settings - Fork 253
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
INSTALLATION: While installing Kilosort in developer mode in Windows, CPU version is installed #853
Comments
Can you please try |
`(kilosort_latest) E:\PROJECTS\Nirvik_Sinha_Data\KILOSORT>conda list torch Name Version Build Channel |
I'm not sure what's causing the problem. My best guess is that you might have an older environment with the same name that's causing conflicts. So, for example if your existing kilosort environment is named
to create a |
I do have another environment called kilosort however to avoid conflict with that one I specifically edited the environment.yml file to create a new environment called 'kilosort_latest'. After creating the environment using the edited yaml file I activate that environment and then install kilosort in editable mode from the gitcloned repo as instructed. However, when I start the kilosort gui, only cpu is listed but not the two gpus i have in my system. |
Were the same GPUs detected previously in your other environment? |
@NirvikNU are you using mamba? see mamba-org/mamba#1617 |
Yes the previous environment detected the gpus as expected, it was a regular kilosort installation not the developer mode. |
have you separately installed pytorch as recommended by https://pytorch.org/? |
Okay so I did this and now it seems to detect the gpus correctly:
I wonder with this manual change will |
|
I have just done a fresh install and tests and would recommend the following as the new developer instructions:
I passed all 25 tests in 128s |
Uninstalling and reinstalling torch should not be necessary when creating the environment from the .yml file, since it already installs the cuda version of pytorch. Creating a fresh environment with the existing developer instructions has worked fine for me on several machines, on both Windows and Linux. If it's not installing the cuda version for you, there's some other issue I'll need to figure out. |
Okay so this works. Now if I need to update the existing kilosort installation, all I need to do is |
|
Describe the issue:
When I tried to install Kilosort using the developer mode instructions provided at the end of the README file, I found that the cpu version of torch is installed:
python -c "import torch; print(torch.cuda.is_available())"
gives False as output.So I followed the instructions for uninstalling torch and then installing cuda version of pytorch. However, after doing that, kilosort doesn't run due to missing torch package:
ImportError: cannot import name 'fft' from 'torch.fft' (unknown location)
What am I doing wrong?
Provide environment info:
active environment : kilosort_latest active env location : C:\Users\Nirvik_Sinha\.conda\envs\kilosort_latest shell level : 2 user config file : C:\Users\Nirvik_Sinha\.condarc populated config files : C:\Users\Nirvik_Sinha\.condarc conda version : 24.4.0 conda-build version : not installed python version : 3.12.3.final.0 solver : libmamba (default) virtual packages : __archspec=1=cascadelake __conda=24.4.0=0 __cuda=12.3=0 __win=0=0 base environment : C:\ProgramData\miniconda3 (read only) conda av data dir : C:\ProgramData\miniconda3\etc\conda conda av metadata url : None channel URLs : https://repo.anaconda.com/pkgs/main/win-64 https://repo.anaconda.com/pkgs/main/noarch https://repo.anaconda.com/pkgs/r/win-64 https://repo.anaconda.com/pkgs/r/noarch https://repo.anaconda.com/pkgs/msys2/win-64 https://repo.anaconda.com/pkgs/msys2/noarch package cache : C:\ProgramData\miniconda3\pkgs C:\Users\Nirvik_Sinha\.conda\pkgs C:\Users\Nirvik_Sinha\AppData\Local\conda\conda\pkgs envs directories : C:\Users\Nirvik_Sinha\.conda\envs C:\ProgramData\miniconda3\envs C:\Users\Nirvik_Sinha\AppData\Local\conda\conda\envs platform : win-64 user-agent : conda/24.4.0 requests/2.31.0 CPython/3.12.3 Windows/2019Server Windows/10.0.17763 solver/libmamba conda-libmamba-solver/24.1.0 libmambapy/1.5.8 aau/0.4.4 c/. s/. e/. administrator : False netrc file : None offline mode : False
Operating system information:
Windows 10
The text was updated successfully, but these errors were encountered: