Skip to content

Commit f78118c

Browse files
MMathisLabjonahpearl
authored andcommitted
Update installation.md (DeepLabCut#2020)
* Update installation.md * Update installTips.md * Update installation.md
1 parent 32e4d62 commit f78118c

File tree

2 files changed

+35
-16
lines changed

2 files changed

+35
-16
lines changed

docs/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
(how-to-install)=
22
# How To Install DeepLabCut
33

4-
DeepLabCut can be run on Windows, Linux, or MacOS (see also [technical considerations](tech-considerations-during-install) and if you run into issues also check out [installation ProTips](installTips)).
4+
DeepLabCut can be run on Windows, Linux, or MacOS (see also [technical considerations](tech-considerations-during-install) and if you run into issues also check out the [Installation Tips](https://deeplabcut.github.io/DeepLabCut/docs/recipes/installTips.html) page).
55

66
## PIP:
77

docs/recipes/installTips.md

Lines changed: 34 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -313,37 +313,56 @@ Activate! `conda activate DEEPLABCUT` and then run: `conda install -c conda-forg
313313
Then run `python -m deeplabcut` which launches the DLC GUI.
314314

315315

316-
## DeepLabCut M1 chip installation environment instructions:
316+
## DeepLabCut MacOS M1 and M2 chip installation environment instructions:
317317

318-
This only assumes you have anaconda installed!
318+
This only assumes you have anaconda installed.
319319

320-
Use the `DEEPLABCUT_M1.yaml` conda file if you have an Macbok with an M1 chip, and follow these steps:
320+
Use the `DEEPLABCUT_M1.yaml` conda file if you have an Macbok with an M1 or M2 chip, and follow these steps:
321321

322322
(1) git clone the deeplabcut cut repo:
323323

324-
`git clone https://github.com/DeepLabCut/DeepLabCut.git`
325-
326-
(2) in the program terminal, `cd DeepLabCut/conda-environments`
324+
```
325+
git clone https://github.com/DeepLabCut/DeepLabCut.git
326+
```
327327

328-
(3) Click here to download the Rosetta wheel for TensorFlow.
328+
(2) in the program terminal run: `cd DeepLabCut/conda-environments`
329329

330-
For instance, for 2.4.1:
331-
https://drive.google.com/file/d/17pSwfoNuyf3YR8vCaVggHeI-pMQ3xL7l/view?usp=sharing
332-
(for different versions see here: https://github.com/tensorflow/tensorflow/issues/46044)
330+
(3) Click [here](https://drive.google.com/file/d/17pSwfoNuyf3YR8vCaVggHeI-pMQ3xL7l/view?usp=sharing) to download the Rosetta wheel for TensorFlow. We assume this goes into your Downloads folder. This downloads TF 2.4.1; https://drive.google.com/file/d/17pSwfoNuyf3YR8vCaVggHeI-pMQ3xL7l/view?usp=sharing
331+
(for different versions see here: https://github.com/tensorflow/tensorflow/issues/46044).
333332

334333
(4) Then, run:
335334

336-
`conda env create -f DEEPLABCUT_M1.yaml`
335+
```
336+
conda env create -f DEEPLABCUT_M1.yaml
337+
```
338+
339+
(5) Please activate the environment and set osx-64; i.e., then, run:
340+
341+
```
342+
conda activate DEEPLABCUT_M1
343+
conda env config vars set CONDA_SUBDIR=osx-64
344+
```
345+
Now, as the print satement says, please deactivate and re-activate to set the change:
346+
347+
```
348+
conda deactivate
349+
conda activate DEEPLABCUT_M1
350+
conda env update -f DEEPLABCUT_M1.yaml
351+
```
352+
353+
(5) Next, run:
337354

338-
(5) Next, **activate the environment,** and in the terminal `cd` to Downloads, and then run:
355+
```
356+
pip install ~/Downloads/tensorflow-2.4.1-py3-none-any.whl --no-dependencies --force-reinstall
357+
```
358+
(again, assumes this file in your downloads folder)
339359

340-
`pip install tensorflow-2.4.1-py3-none-any.whl --no-dependencies --force-reinstall`
341360

342-
(6) Next, launch DLC with `pythonw -m deeplabcut`
361+
(6) Next, launch DLC with `pythonw -m deeplabcut` (or if DLC version 2.3+, please use `python -m deeplabcut`)
343362

344363
GUI will open!
345364

346-
Note: Based on issue #1380 thanks!
365+
Note: Based on issues #1380 and #2011, thanks!
347366

348367
## How to confirm that your GPU is being used by DeepLabCut
349368

0 commit comments

Comments
 (0)