Skip to content

maDLC: compiling the optional c code

Mackenzie Mathis edited this page Apr 5, 2020 · 1 revision

There is a lot of new code with maDLC, and one such step has OPTIONAL c-code that needs to be compiled. This code is faster and if you are comfortable with these steps we recommend it. This has not been tested on Windows. Here is how to do so for Linux (ubuntu) and MacOS (Catalina).

(1) check the path of where deeplabcut is installed:

import deeplabcut deeplabcut.__file__

and you should get something like this:

(ubuntu): /home/alex/anaconda3/envs/DLC/lib/python3.6/site-packages/deeplabcut/__init__.py

(macOS): /Users/mwmathis/opt/anaconda3/lib/python3.7/site-packages/deeplabcut/__init__.py

(2) Now cd into whateveryourpathis ... /pose_estimation_tensorflow/lib/nms_cython

e.g. /Users/mwmathis/opt/anaconda3/lib/python3.7/site-packages/deeplabcut/pose_estimation_tensorflow/lib/nms_cython and run:

python3 setup.py build_ext --inplace

Clone this wiki locally