You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+24Lines changed: 24 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -50,6 +50,8 @@ Pachitariu, M., Stringer, C., Schröder, S., Dipoppa, M., Rossi, L. F., Carandin
50
50
51
51
## Local installation
52
52
53
+
If you are using a GPU, make sure its drivers and the cuda libraries are correctly installed.
54
+
53
55
1. Install an [Anaconda](https://www.anaconda.com/download/) distribution of Python -- Choose **Python 3.8** and your operating system. Note you might need to use an anaconda prompt if you did not add anaconda to the path.
54
56
2. Open an anaconda prompt / command prompt with `conda` for **python 3** in the path
55
57
3. Create a new environment with `conda create --name suite2p python=3.9`.
@@ -76,8 +78,28 @@ This package relies on the awesomeness of [pyqtgraph](http://pyqtgraph.org/), [P
76
78
77
79
The software has been heavily tested on Windows 10 and Ubuntu 18.04, and less well tested on Mac OS. Please post an [issue](https://github.com/MouseLand/suite2p/issues) if you have installation problems.
78
80
81
+
### GPU version (CUDA) on Windows or Linux
82
+
83
+
If you plan on running Cellpose-SAM (anatomical ROI detection), you may want to install a GPU version of *torch*. To use your NVIDIA GPU with python, you will need to make sure the NVIDIA driver for your GPU is installed, check out this [website](https://www.nvidia.com/Download/index.aspx?lang=en-us) to download it. You can also install the CUDA toolkit, or use the pytorch cudatoolkit (installed below with conda). If you have trouble with the below install, we recommend installing the CUDA toolkit yourself, choosing one of the 11.x releases [here](https://developer.nvidia.com/cuda-toolkit-archive).
84
+
85
+
With the latest versions of pytorch on Linux, as long as the NVIDIA drivers are installed, the GPU version is installed by default with pip. You can check if the GPU support is working by opening the GUI. If the GPU is working then the `GPU` box will be checked and the `CUDA` version will be displayed in the command line.
86
+
87
+
If it's not working, we will need to remove the CPU version of torch:
88
+
~~~
89
+
pip uninstall torch
90
+
~~~
91
+
92
+
To install the GPU version of torch, follow the instructions [here](https://pytorch.org/get-started/locally/). The pip or conda installs should work across platforms, you will need torch and torchvision, e.g. for windows + cuda 12.6 the command is
Info on how to install several older versions is available [here](https://pytorch.org/get-started/previous-versions/). After install you can check `conda list` for `pytorch`, and its version info should have `cuXX.X`, not `cpu`.
98
+
79
99
### Installing the latest github version of the code
80
100
101
+
If you are using a GPU, make sure its drivers and the cuda libraries are correctly installed.
0 commit comments