26 lines
535 B
Markdown
26 lines
535 B
Markdown
https://forums.developer.nvidia.com/t/which-tracker-to-use-to-do-ai-detection-1st-frame-tracking-other-frames/178305/6
|
|
|
|
1. sudo apt-get install python3-dev
|
|
|
|
2. install dlib for cuda
|
|
wget http://dlib.net/files/dlib-19.22.tar.bz2
|
|
tar jxvf dlib-19.22.tar.bz2
|
|
cd dlib-19.22/
|
|
mkdir build
|
|
cd build/
|
|
cmake ..
|
|
cmake --build .
|
|
cd ../
|
|
sudo python3 setup.py install
|
|
|
|
3.
|
|
python3
|
|
|
|
import dlib
|
|
dlib.cuda.get_num_devices()
|
|
|
|
|
|
|
|
For opencv with virtualenv:
|
|
cp -r /usr/local/lib/python3.6/dist-packages/cv2 .
|
|
cp -r /usr/lib/python3/dist-packages/numpy . |