22 comments

[ 5.2 ms ] story [ 56.3 ms ] thread
How does this compare to other toolkits?
Although there is a Python frontend, Dlib is really a C++-first toolkit that can be easily integrated in to other C++ applications.

The examples are thoroughly documented, and the code itself has been a great pedagogical tool for me and others I work with. Basically, it's simple and well written.

Nice to know there's a python wrapper, might make it easier to mock up / do initial validation before heading into the long grass.
Last time I used it, the Python package isn't shipped as a wheel, so you have to compile dlib from source using CMake on install. Makes it harder to use for Python devs.
That is correct. When one runs `pip install dlib`, only a .tar.gz file is retrieved. Then the building process takes a long while!

> Collecting dlib

> Downloading dlib-19.22.0.tar.gz (7.4 MB)

> || 7.4 MB 14.7 MB/s

> Building wheels for collected packages: dlib

I had not noticed before because I have only used dlib on Google Colaboratory, where it is thankfully pre-installed.

It is my favorite all-purpose library.
Definitely. Building it is relatively straightforward, there are many great utilities in there (not just ML stuff), the maintainer cares a great deal, and the documentation is truly exceptional (like, overall. Not just the website docs).
Dlib, when I used it for work, was a real pleasure to use. Some of its algorithms are actually state-of-the-art compared to other (often better known) open-source implementations. I would even say some of the advantages my team had over our competitors were partly due to our deeper understanding of the library ecosystem and using libraries like dlib instead of more popular default choices.

edit: grammar

Does dlib use boost or lapack/scalapack underneath the hood for parallel linear algebra operations?
Dlib can use whichever BLAS library you want it to.
Second this. Used this in production to train custom detectors with headgear on.
I've added DLib usage examples in an ffmpeg video player I have on Github. Examples so far include face detection, face feature recovery, and face image collection. Super simple to use. If interested https://github.com/bsenftner/ffvideo
Does anyone know Dlib workarounds/upgrades for face recognition with masks on?
Has anyone seen a way to call this from Rust?
Since it compiles a shared library, I'm assuming it's the same process as linking any other shared library in Rust
I'll take a good look at this one; as I'm currently using Python in ML, I might as well try it on C++.