From 7400827c17493ff1a686e1ab44f8bf2716ee1570 Mon Sep 17 00:00:00 2001 From: Niels Poulsen Date: Fri, 5 May 2023 16:50:32 +0200 Subject: [PATCH 1/3] removed deprecated install tips for m1/m2 --- docs/recipes/installTips.md | 52 ------------------------------------- 1 file changed, 52 deletions(-) diff --git a/docs/recipes/installTips.md b/docs/recipes/installTips.md index 8db8c3bf73..ff9a5f78e4 100644 --- a/docs/recipes/installTips.md +++ b/docs/recipes/installTips.md @@ -312,58 +312,6 @@ Activate! `conda activate DEEPLABCUT` and then run: `conda install -c conda-forg Then run `python -m deeplabcut` which launches the DLC GUI. - -## DeepLabCut MacOS M1 and M2 chip installation environment instructions: - -This only assumes you have anaconda installed. - -Use the `DEEPLABCUT_M1.yaml` conda file if you have an Macbok with an M1 or M2 chip, and follow these steps: - -(1) git clone the deeplabcut cut repo: - -``` -git clone https://github.com/DeepLabCut/DeepLabCut.git -``` - -(2) in the program terminal run: `cd DeepLabCut/conda-environments` - -(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 -(for different versions see here: https://github.com/tensorflow/tensorflow/issues/46044). - -(4) Then, run: - -``` -conda env create -f DEEPLABCUT_M1.yaml -``` - -(5) Please activate the environment and set osx-64; i.e., then, run: - -``` -conda activate DEEPLABCUT_M1 -conda env config vars set CONDA_SUBDIR=osx-64 -``` -Now, as the print statement says, please deactivate and re-activate to set the change: - -``` -conda deactivate -conda activate DEEPLABCUT_M1 -conda env update -f DEEPLABCUT_M1.yaml -``` - -(5) Next, run: - - ``` - pip install ~/Downloads/tensorflow-2.4.1-py3-none-any.whl --no-dependencies --force-reinstall - ``` - (again, assumes this file in your downloads folder) - - -(6) Next, launch DLC with `pythonw -m deeplabcut` (or if DLC version 2.3+, please use `python -m deeplabcut`) - -GUI will open! - -Note: Based on issues #1380 and #2011, thanks! - ## How to confirm that your GPU is being used by DeepLabCut During training and analysis steps, DeepLabCut does not use the GPU processor heavily. To confirm that DeepLabCut is properly using your GPU: From b1db16aee52be98c5e786a3c1b4c69c1ba8c6b02 Mon Sep 17 00:00:00 2001 From: Niels Poulsen Date: Fri, 5 May 2023 17:41:03 +0200 Subject: [PATCH 2/3] updated docs to keep basic steps --- docs/recipes/installTips.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/docs/recipes/installTips.md b/docs/recipes/installTips.md index ff9a5f78e4..e2ccf3c2d8 100644 --- a/docs/recipes/installTips.md +++ b/docs/recipes/installTips.md @@ -312,6 +312,33 @@ Activate! `conda activate DEEPLABCUT` and then run: `conda install -c conda-forg Then run `python -m deeplabcut` which launches the DLC GUI. +## DeepLabCut MacOS M1 and M2 chip installation environment instructions: + +This only assumes you have anaconda installed. + +Use the `DEEPLABCUT_M1.yaml` conda file if you have an Macbok with an M1 or M2 chip, and follow these steps: + +(1) git clone the deeplabcut cut repo: + +```bash +git clone https://github.com/DeepLabCut/DeepLabCut.git +``` + +(2) in the program terminal run: `cd DeepLabCut/conda-environments` + +(3) Then, run: + +```bash +conda env create -f DEEPLABCUT_M1.yaml +``` + +(4) Finally, activate your environment and launch DLC. The GUI will open! + +```bash +conda activate DEEPLABCUT_M1 +python -m deeplabcut +``` + ## How to confirm that your GPU is being used by DeepLabCut During training and analysis steps, DeepLabCut does not use the GPU processor heavily. To confirm that DeepLabCut is properly using your GPU: From 9b33c0bb2782450357b224254241985cd5c95fa5 Mon Sep 17 00:00:00 2001 From: Alexander Mathis Date: Sat, 6 May 2023 10:33:21 +0200 Subject: [PATCH 3/3] Update installTips.md --- docs/recipes/installTips.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/recipes/installTips.md b/docs/recipes/installTips.md index e2ccf3c2d8..cf923f2cf1 100644 --- a/docs/recipes/installTips.md +++ b/docs/recipes/installTips.md @@ -332,13 +332,15 @@ git clone https://github.com/DeepLabCut/DeepLabCut.git conda env create -f DEEPLABCUT_M1.yaml ``` -(4) Finally, activate your environment and launch DLC. The GUI will open! +(4) Finally, activate your environment and to launch DLC with the GUI ```bash conda activate DEEPLABCUT_M1 python -m deeplabcut ``` +The GUI will open. Of course, you can also run DeepLabCut in headless mode. + ## How to confirm that your GPU is being used by DeepLabCut During training and analysis steps, DeepLabCut does not use the GPU processor heavily. To confirm that DeepLabCut is properly using your GPU: