4 ms·
200 LOC is misleading since it requires you to download a model separately to use it.
by charcircuit 4y ago
200 LOC is misleading since it requires you to download a model separately to use it.
- sbf501 4y agoHere are the models it downloads (in webcam.html) var cascadeurl = 'https://raw.githubusercontent.com/nenadmarkus/pico/c2e81f9d23cc11d1a612fd21e4f9de0921a5d0d9/rnt/cascades/facefinder'; var puplocurl = 'https://drone.nenadmarkus.com/data/blog-stuff/puploc.bin' The former is 234 KB, the latter is 1.4 MB
- elteto 4y agoIs the model code? Or just data? Because if it’s just data and the library truly only needs 200 LOC to work with that model then it’s fair to say that it is a 200 LOC only library. I can write a naive spell checker in a few dozen lines of Python, say 100 lines. I’ll need a dictionary file for it to be useful though. Would you claim my code is 100 lines or 50100 (assuming dict file has 50k words) lines?
- userbinator 4y agoThe latter, because in this case the bulk of the "what is a face" function is determined by that data.
- liuliu 4y agoHAAR Cascading based face detectors are subpar to neural-network based ones. It is better to just use TF.js and related face detector. These are faster and much more accurate. (I wrote JS-based face detector a decade ago: https://liuliu.me/eyes/javascript-face-detection-explained/ https://liuliu.me/eyes/javascript-face-detection-explained/)
- rsrsrs86 4y agoWhile reading the post, it didn’t strike me as odd. I worked with small services wrapping ML models and 200 lines looks very slick and I don’t recall anyone considering weights as part of the code, and even the model training code is treated differently that the cliente code. Seems legit