How-To Install DeepLabCut:#

DeepLabCut can be run πŸƒβ€β™‚οΈ on Windows, Linux, or macOS.

Follow the DeepLabCut installation guide. You can always ask the teaching assistants πŸ“’ for help if you get stuck✨!

In brief, if you do not have a GPU on your machine, all you need to do is:

For the steps that require a GPU, you can use DeepLabCut on Google Colab πŸ˜‰!

If you have an Apple M1/M2 GPU, have a look at this MacOS-specific guidance! This new, easy installation works for MacOS versions 12.5.1 and higher so check your version first and update if necessary.

If you have an NVIDIA GPU and wish to engage it, your order of business will be slightly more involved. What you do depends on whether your machine has other versions of CUDA/TensorFlow installed - see this note on system-wide installation.

If you have Ubuntu, it is recommended that you use Docker. You can follow these detailed instructions for Ubuntu 18.04 or Ubuntu 20.04 and also have a look at these notes on DLC Docker containers!

If you use Windows OS and do not have other versions of CUDA installed:

If you use Windows OS and do have other versions of CUDA installed:

  • install Python - Step 1 in the DLC installation guide describes the easiest way to do this;

  • install DeepLabCut - Step 2 in the DLC installation guide explains what you should do;

  • add the TF2.10-compatible CUDA toolkit to your new DLC conda environment by running conda install -c conda-forge cudatoolkit=11.2 cudnn=8.1.0

  • verify that your GPU is recognised by running python3 -c "import tensorflow as tf; print(tf.config.list_physical_devices('GPU'))"

Something gone awry? Check out these troubleshooting tips and reach out to teaching assistants!

Let’s go back πŸ”™.