Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
9aa9647
added initial pytorch docs
n-poulsen Jun 7, 2024
76cd889
Update _toc.yml
MMathisLab Jun 7, 2024
f15a09a
Update user_guide.md
MMathisLab Jun 7, 2024
f448dc9
Update architectures.md
MMathisLab Jun 7, 2024
d598a56
Update labelling.md
MMathisLab Jun 7, 2024
b9195b8
Update labelling.md
MMathisLab Jun 7, 2024
4bc8aa1
Update codespell.yml
MMathisLab Jun 7, 2024
fecf7e5
Merge branch 'main' into pytorch_docs
MMathisLab Jun 7, 2024
0a2a1c5
Update README.md
MMathisLab Jun 7, 2024
a4e050f
Update installation.md
MMathisLab Jun 7, 2024
9cdb9f1
Delete conda-environments/DEEPLABCUT_M1.yaml
MMathisLab Jun 7, 2024
198a34e
Update DEEPLABCUT.yaml
MMathisLab Jun 7, 2024
e3a5dfa
Update installation.md
MMathisLab Jun 7, 2024
5a774b9
Update maDLC_UserGuide.md
MMathisLab Jun 7, 2024
9d71c9b
Update ModelZoo.md
MMathisLab Jun 8, 2024
3a5a5a1
Update standardDeepLabCut_UserGuide.md
MMathisLab Jun 8, 2024
a7c49eb
Update standardDeepLabCut_UserGuide.md
MMathisLab Jun 8, 2024
0aa9e28
Update standardDeepLabCut_UserGuide.md
MMathisLab Jun 8, 2024
4bf88d2
Update Overviewof3D.md
MMathisLab Jun 8, 2024
665f2df
Update PROJECT_GUI.md
MMathisLab Jun 8, 2024
a388d28
Update UseOverviewGuide.md
MMathisLab Jun 8, 2024
c0028c0
Update beginners-guide.md
MMathisLab Jun 8, 2024
329ce71
Update intro.md
MMathisLab Jun 8, 2024
c1aaa84
Update architectures.md
MMathisLab Jun 8, 2024
16e4386
Update architectures.md
MMathisLab Jun 8, 2024
894e3b4
Merge branch 'main' into pytorch_docs
MMathisLab Jun 8, 2024
680f353
Create course.md
MMathisLab Jun 8, 2024
09bd63e
Update _toc.yml
MMathisLab Jun 8, 2024
d29e7c4
Update manage-project.md
MMathisLab Jun 8, 2024
34a7b5a
Update beginners-guide.md
MMathisLab Jun 8, 2024
20d0bca
Update manage-project.md
MMathisLab Jun 8, 2024
f2336cc
Update _toc.yml
MMathisLab Jun 8, 2024
7a3e0ea
Rename labelling.md to labeling.md
MMathisLab Jun 8, 2024
4802d4f
Update Training-Evaluation.md
MMathisLab Jun 8, 2024
1de7232
Update video-analysis.md
MMathisLab Jun 8, 2024
77ea994
Update architectures.md
MMathisLab Jun 8, 2024
73cd31a
Update architectures.md
MMathisLab Jun 8, 2024
8483175
Update AUTHORS
MMathisLab Jun 8, 2024
518909a
Update architectures.md
MMathisLab Jun 8, 2024
82132e1
doc clean up, tested local build
MMathisLab Jun 8, 2024
0197ba4
Update beginners-guide.md
MMathisLab Jun 8, 2024
e91ee09
Update ModelZoo.md
MMathisLab Jun 8, 2024
daf2f87
Update ModelZoo.md
MMathisLab Jun 8, 2024
2a8949b
Update ModelZoo.md
MMathisLab Jun 8, 2024
9a1f28a
Update ModelZoo.md
MMathisLab Jun 8, 2024
02d71df
Update README.md
MMathisLab Jun 8, 2024
0499825
Update ModelZoo.md
MMathisLab Jun 8, 2024
83db9af
Update ModelZoo.md
MMathisLab Jun 8, 2024
14bbee0
Update AUTHORS
MMathisLab Jun 10, 2024
aa3c82d
Update README.md
MMathisLab Jun 11, 2024
fec76d8
Merge branch 'main' into pytorch_docs
MMathisLab Jun 11, 2024
5927e26
Update installation.md
MMathisLab Jun 12, 2024
3cfb0a8
Update DEEPLABCUT.yaml
MMathisLab Jun 12, 2024
bd212aa
Update DEEPLABCUT.yaml
MMathisLab Jun 12, 2024
a6c9318
Update AUTHORS
MMathisLab Jun 13, 2024
63898d7
fixed typos
n-poulsen Jun 13, 2024
7a33b74
Update python-package.yml
MMathisLab Jun 13, 2024
62ca76b
Update README.md
MMathisLab Jun 14, 2024
7c0a5c1
Update beginners-guide.md
MMathisLab Jun 14, 2024
8dfd1e6
Update user_guide.md
MMathisLab Jun 14, 2024
f6ba9d3
m1 for tf only
MMathisLab Jun 14, 2024
093c424
Merge branch 'main' into pytorch_docs
MMathisLab Jun 14, 2024
aeccccb
Update README.md
MMathisLab Jun 14, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update installation.md
  • Loading branch information
MMathisLab authored Jun 7, 2024
commit a4e050fe333b83b40b58a3f1a5ae96f43d480287
37 changes: 16 additions & 21 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
Download anaconda for your operating system: https://www.anaconda.com/distribution/.
```

- IF you use a M1 or M2 chip in your MacBook with v12.5+ (typically 2020 or newer machines), you should use **miniconda3,** which operates with the same principles as anaconda. This is straight forward and explained in detail here: https://docs.conda.io/projects/conda/en/latest/user-guide/install/macos.html. But in short, open the program "terminal" and copy/paste and run the code that is supplied below.
- IF you use a M1 or M2 chip in your MacBook with v12.5+ (typically 2020 or newer machines), we recommend **miniconda3,** which operates with the same principles as anaconda. This is straight forward and explained in detail here: https://docs.conda.io/projects/conda/en/latest/user-guide/install/macos.html. But in short, open the program "terminal" and copy/paste and run the code that is supplied below.

#### 💡 miniconda for Mac
````{admonition} Click the button to see code for miniconda for Mac
Expand All @@ -42,14 +42,12 @@ Windows users: Be sure you have `git` installed along with anaconda: https://git

- TO DIRECTLY DOWNLOAD THE CONDA FILE conda:

- click ➡️ for [Windows, Linux or Apple Intel w/o M1/M2](https://github.com/DeepLabCut/DeepLabCut/blob/main/conda-environments/DEEPLABCUT.yaml#:~:text=Raw%20file%20content-,Download,-%E2%8C%98) and then click the "..." and select Download
- click ➡️ for [CONDA FILE](https://github.com/DeepLabCut/DeepLabCut/blob/main/conda-environments/DEEPLABCUT.yaml#:~:text=Raw%20file%20content-,Download,-%E2%8C%98) and then click the "..." and select Download
<img width="274" alt="Screen Shot 2023-09-13 at 10 33 32 PM" src="https://github.com/DeepLabCut/DeepLabCut/assets/28102185/ec4295a5-e85c-4ce7-8c16-e6517a2cfa22">

- click ➡️ for [Apple w/M1/M2](https://github.com/DeepLabCut/DeepLabCut/blob/main/conda-environments/DEEPLABCUT_M1.yaml#:~:text=Raw%20file%20content-,Download,-%E2%8C%98), and then click the "..." and Download

<img width="274" alt="Screen Shot 2023-09-13 at 10 33 32 PM" src="https://github.com/DeepLabCut/DeepLabCut/assets/28102185/ec4295a5-e85c-4ce7-8c16-e6517a2cfa22">

**Alternatively,** you can git clone this repo and install (if the download did not work or you just want to have the source code handy)!
#### Alternatively, you can git clone this repo and install
- (if the download did not work or you just want to have the source code handy)!

- **Windows/Linux/MacBooks:** git clone this repo (in the terminal/cmd program, while **in a folder** you wish to place DeepLabCut
To git clone type: ``git clone https://github.com/DeepLabCut/DeepLabCut.git``). Note, this can be anywhere, even downloads is fine.)
Expand All @@ -72,25 +70,24 @@ Be sure you are in the folder that has the `.yaml` file, then run:

``conda env create -f DEEPLABCUT.yaml``

- or for Apple M1 / M2 chips:

``conda env create -f DEEPLABCUT_M1.yaml``

- You can now use this environment from anywhere on your computer (i.e., no need to go back into the conda- folder). Just enter your environment by running:
- Ubuntu/MacOS: ``source/conda activate nameoftheenv`` (i.e. on your Mac: ``conda activate DEEPLABCUT`` or ``conda activate DEEPLABCUT_M1``)
- Ubuntu/MacOS: ``source/conda activate nameoftheenv`` (i.e. on your Mac: ``conda activate DEEPLABCUT``)
- Windows: ``activate nameoftheenv`` (i.e. ``activate DEEPLABCUT``)

Now you should see (`nameofenv`) on the left of your terminal screen, i.e. ``(DEEPLABCUT_M1) YourName-MacBook...``
Now you should see (`nameofenv`) on the left of your terminal screen, i.e. ``(DEEPLABCUT) YourName-MacBook...``
NOTE: no need to run pip install deeplabcut, as it is already installed!!! :)

**Great, that's it! DeepLabCut is installed!** 🎉💜

🚨 Next, [head over to the Docs to decide which mode to use DeepLabCut in. You have both standard and multi-animal installed!](https://deeplabcut.github.io/DeepLabCut/docs/UseOverviewGuide.html#what-you-need-to-get-started)

## PIP:
## Other options:

- Everything you need to build custom models within DeepLabCut (i.e., use our source code and our dependencies) can be installed with `pip install 'deeplabcut[gui,tf]'` (for GUI support w/tensorflow) or without the gui: `pip install 'deeplabcut[tf]'`.
- If you want to use the SuperAnimal models, then please use `pip install 'deeplabcut[gui,tf,modelzoo]'`.
### PIP:

- Everything you need to build custom models within DeepLabCut (i.e., use our source code and our dependencies) can be installed with `pip install 'deeplabcut[gui,tf]'` (for GUI support w/tensorflow) or without the gui: `pip install 'deeplabcut'`.
- If you want to use the SuperAnimal models, then please use `pip install 'deeplabcut[gui,modelzoo]'`.

#### We recommend having a GPU.

Expand Down Expand Up @@ -125,13 +122,10 @@ Some users might want to create their own customize env. - Here is an example.

In the terminal type:

`conda create -n DLC python=3.8`

**Current version:** The only thing you then need to add to the env is deeplabcut (`pip install deeplabcut[tf]`) or `pip install 'deeplabcut[gui,tf]'` which has a pyside/napari based GUI.
`conda create -n DLC python=3.10`

**Pre-version2.3 (Dec 2022):** The only thing you then need to add to the env is deeplabcut (`pip install deeplabcut`) or `pip install 'deeplabcut[gui]'` which has wxPython for GUI support. For Windows and MacOS, you just run `pip install -U wxPython<4.1.0` but for linux you might need the specific wheel (https://wxpython.org/pages/downloads/index.html).
**Current version:** The only thing you then need to add to the env is deeplabcut (`pip install deeplabcut`) or `pip install 'deeplabcut[gui]'` which has a napari based GUI.

We have some tips for linux users here, as the latest Ubuntu doesn't easily support a 1-click install: https://deeplabcut.github.io/DeepLabCut/docs/recipes/installTips.html

## **GPU Support:**

Expand All @@ -155,7 +149,8 @@ The ONLY thing you need to do **first** if you have an NVIDIA GPU and the matchi

##### Notes:

- **All of the TensorFlow versions work with DeepLabCut**. But, please be mindful different versions of TensorFlow require different CUDA versions.
- **As of verion 3.0+ we moved to PyTorch. The Last supported vesion of TensorFlow is 2.10 (window users) and 2.12 for others (we have not tested beyond this).**
- Please be mindful different versions of TensorFlow require different CUDA versions.
- As the combination of TensorFlow and CUDA matters, we strongly encourage you to **check your driver/cuDNN/CUDA/TensorFlow versions** [on this StackOverflow post](https://stackoverflow.com/questions/30820513/what-is-version-of-cuda-for-nvidia-304-125/30820690#30820690).
- To check your GPU is working, in the terminal, run:

Expand Down Expand Up @@ -220,7 +215,7 @@ If you perform the system-wide installation, and the computer has other Python p
- Anaconda/Python3: Anaconda: a free and open source distribution of the Python programming language (download from https://www.anaconda.com/). DeepLabCut is written in Python 3 (https://www.python.org/) and not compatible with Python 2.
- `pip install deeplabcut`
- TensorFlow
- You will need [TensorFlow](https://www.tensorflow.org/) (we used version 1.0 in the Nature Neuroscience paper, later versions also work with the provided code (we tested **TensorFlow versions 1.0 to 1.15, and 2.0 to 2.10**; we recommend TF2.10 now) for Python 3.8, 3.9, 3.10 with GPU support.
- If you want to use a pre3.0 version, you will need [TensorFlow](https://www.tensorflow.org/) (we used version 1.0 in the Nature Neuroscience paper, later versions also work with the provided code (we tested **TensorFlow versions 1.0 to 1.15, and 2.0 to 2.10**; we recommend TF2.10 now) for Python 3.8, 3.9, 3.10 with GPU support.
- To note, is it possible to run DeepLabCut on your CPU, but it will be VERY slow (see: [Mathis & Warren](https://www.biorxiv.org/content/early/2018/10/30/457242)). However, this is the preferred path if you want to test DeepLabCut on your own computer/data before purchasing a GPU, with the added benefit of a straightforward installation! Otherwise, use our COLAB notebooks for GPU access for testing.
- Docker: We highly recommend advanced users use the supplied [Docker container](docker-containers)

Expand Down