summaryrefslogtreecommitdiff
path: root/notes/frameworks/dlib.md
diff options
context:
space:
mode:
Diffstat (limited to 'notes/frameworks/dlib.md')
-rw-r--r--notes/frameworks/dlib.md17
1 files changed, 15 insertions, 2 deletions
diff --git a/notes/frameworks/dlib.md b/notes/frameworks/dlib.md
index a497f761..decf182b 100644
--- a/notes/frameworks/dlib.md
+++ b/notes/frameworks/dlib.md
@@ -1,7 +1,20 @@
# dlib
+
+```
+git clone https://github.com/davisking/dlib.git
+cd dlib
+mkdir build
+d build
+cmake .. -DDLIB_USE_CUDA=1 -DUSE_AVX_INSTRUCTIONS=1
+cmake --build .
+cd ..
+python setup.py install --yes USE_AVX_INSTRUCTIONS --yes DLIB_USE_CUDA
+python -c 'import dlib;print(f'dlib GPU installed: {dlib.DLIB_USE_CUDA})'
+```
+
- dlib==19.7 required for `face_recognition`
- dlib==19.6 works for 3ddfa
-
- `libmkl_rt.so` is missing: `export LD_LIBRARY_PATH=/home/adam/anaconda3/lib/:$LD_LIBRARY_PATH`
-- if `lib16..so` is missing: `apt install libboost-all-dev` \ No newline at end of file
+- if `lib16..so` is missing: `apt install libboost-all-dev`
+- libmkl_rt.so canont open shared object file: <https://github.com/davisking/dlib/issues/587> \ No newline at end of file