News for hackers. Stuff that matters.
Re:Dlib: Modern C++/Python Toolkit for Machine Learning by quanto on Monday July 26, 2021 @06:56AM (#27957950)
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

Re:Dlib: Modern C++/Python Toolkit for Machine Learning by CodeGlitch on Wednesday August 04, 2021 @04:42PM (#28066047)
Here's an interview I came across with the creator (Davis King) of dlib:

https://www.pyimagesearch.com/2017/03/13/an-interview-with-d...

Goes into some interesting details, and is a library that I'm definitely going to check out.

Re:Dlib: Modern C++/Python Toolkit for Machine Learning by wanderingmind on Monday July 26, 2021 @07:22AM (#27958096)
Does dlib use boost or lapack/scalapack underneath the hood for parallel linear algebra operations?
Re:Dlib: Modern C++/Python Toolkit for Machine Learning by arrufat on Monday July 26, 2021 @07:45AM (#27958251)
Have a look at this paper, not only does it support BLAS, but is also capable of rearranging matrix operations to make better use of BLAS routines.

EDIT: the paper https://jmlr.csail.mit.edu/papers/volume10/king09a/king09a.p...

Re:Dlib: Modern C++/Python Toolkit for Machine Learning by wanderingmind on Monday July 26, 2021 @08:46AM (#27958703)
Thank you. I will read the paper. I'm looking for an alternative to pytorch which works great for toy problems but starts to suffer at scale.
Re:Dlib: Modern C++/Python Toolkit for Machine Learning by quanto on Monday July 26, 2021 @07:32AM (#27958163)
Dlib can use whichever BLAS library you want it to.
Re:Dlib: Modern C++/Python Toolkit for Machine Learning by theriddlr on Monday July 26, 2021 @02:00PM (#27962781)
Second this. Used this in production to train custom detectors with headgear on.
Re:Dlib: Modern C++/Python Toolkit for Machine Learning by bsenftner on Monday July 26, 2021 @07:57AM (#27958348)
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
Re:Dlib: Modern C++/Python Toolkit for Machine Learning by arrufat on Monday July 26, 2021 @06:35AM (#27957829)
It is my favorite all-purpose library.
Re:Dlib: Modern C++/Python Toolkit for Machine Learning by dynamite-ready on Monday July 26, 2021 @09:42AM (#27959239)
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).
Re:Dlib: Modern C++/Python Toolkit for Machine Learning by synergy20 on Monday July 26, 2021 @12:48PM (#27961704)
for real time face detection opencv actually is much faster than dlib.

https://towardsdatascience.com/face-detection-models-which-t...

Re:Dlib: Modern C++/Python Toolkit for Machine Learning by scalaisneat on Monday July 26, 2021 @11:06AM (#27960311)
Has anyone seen a way to call this from Rust?
Re:Dlib: Modern C++/Python Toolkit for Machine Learning by alexfromapex on Monday July 26, 2021 @11:29AM (#27960641)
Since it compiles a shared library, I'm assuming it's the same process as linking any other shared library in Rust
Re:Dlib: Modern C++/Python Toolkit for Machine Learning by donhaker on Monday July 26, 2021 @12:57PM (#27961853)
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++.
Re:Dlib: Modern C++/Python Toolkit for Machine Learning by posharma on Monday July 26, 2021 @04:40AM (#27957124)
How does this compare to other toolkits?
Re:Dlib: Modern C++/Python Toolkit for Machine Learning by krona on Monday July 26, 2021 @04:53AM (#27957188)
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.

Re:Dlib: Modern C++/Python Toolkit for Machine Learning by thundergolfer on Monday July 26, 2021 @09:04AM (#27958859)
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.
Re:Dlib: Modern C++/Python Toolkit for Machine Learning by woko on Monday July 26, 2021 @11:46AM (#27960880)
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.

Re:Dlib: Modern C++/Python Toolkit for Machine Learning by conjectures on Monday July 26, 2021 @06:17AM (#27957705)
Nice to know there's a python wrapper, might make it easier to mock up / do initial validation before heading into the long grass.
Re:Dlib: Modern C++/Python Toolkit for Machine Learning by M_bara on Monday July 26, 2021 @09:14AM (#27958954)
Does anyone know Dlib workarounds/upgrades for face recognition with masks on?
Re:Dlib: Modern C++/Python Toolkit for Machine Learning by kbkbiviv on Monday July 26, 2021 @05:07AM (#27957277)
Is there a good port of this for android?
Re:Dlib: Modern C++/Python Toolkit for Machine Learning by arrufat on Monday July 26, 2021 @06:35AM (#27957821)