data-science

Data science, data analysis, and machine learning in Clojure https://scicloj.github.io/pages/chat_streams/ for additional discussions
2019-10-22T12:36:04.070100Z

New book release 0.11.0 :sheepy: :sheepy: :sheepy: Adaptive Learning Rates: RMSprop and Adam https://aiprobook.com/deep-learning-for-programmers/

🚀 2
6
fabrao 2019-10-22T17:32:58.071800Z

hello all, anyone used GraalVM with libs from Python?

2019-10-22T18:16:19.072300Z

@fabrao Have you taken a look at libpython-clj? https://github.com/cnuernber/libpython-clj

fabrao 2019-10-22T18:21:27.073500Z

@metasoarous I´ve never heard about it. Do you think can I use the opencv stuffs with this?

2019-10-22T18:22:59.074600Z

I imagine. This is @chris441's baby; He may know whether anyone has tried opencv with it yet.

chrisn 2019-10-22T18:25:52.076Z

@fabrao Likely, yes. I know that someone has run the libpython-clj unit tests from graalVM. We have used matplotlib which I can't imagine is any crazier than opencv.

2019-10-22T18:26:30.076400Z

if you want to use opencv you can also check out https://github.com/hellonico/origami

chrisn 2019-10-22T18:28:05.077500Z

Also: https://github.com/techascent/tech.opencv And I use opencv to validate tvm-clj.

fabrao 2019-10-22T18:28:57.077900Z

@gigasquid I´ve used it, but other libs like face-recognition only in python

👍 1
chrisn 2019-10-22T18:31:22.078400Z

@fabrao - Are you using MTCNN?

fabrao 2019-10-22T18:37:06.079700Z

I tried many libs, but the https://github.com/ageitgey/face_recognition is the simplest lib I´ve used, you can get recognition with one picture

fabrao 2019-10-22T18:38:04.080300Z

even if you rotate head a little

chrisn 2019-10-22T18:41:52.081200Z

Cool 🙂. I did facial rec for a while. @gigasquid told me about insightface which I really liked for created the actual feature vectors.

fabrao 2019-10-22T18:44:02.081500Z

Have you used it with core.async?

fabrao 2019-10-22T18:46:28.082500Z

I´m thinking using it like chan of images to speed up processing and skipping some frames to increase fps

chrisn 2019-10-22T18:51:39.083800Z

I have not used it with core.async. When I was working with that stuff I found batching to be the most effective. Processing 32 image batches or something (whatever your RAM allows) worked very well as opposed to processing 1 image.

chrisn 2019-10-22T18:51:54.084100Z

But I was finding a lot of faces in 1 image.

chrisn 2019-10-22T18:52:04.084400Z

So I had a lot of faces to create vectors out of.

chrisn 2019-10-22T18:57:48.085800Z

Parallelizing the actual find-faces pathway was also useful. But for our use case MTCNN at that time was markedly better than dlib. Times change, however, as does the version of dlib so YMMV.

fabrao 2019-10-22T19:04:50.086500Z

Did you use it with clojure or python?

fabrao 2019-10-22T19:06:21.086900Z

I need it with face recognition, not only detection

chrisn 2019-10-22T19:17:42.087200Z

We used both mtcnn and insightface from python.

chrisn 2019-10-22T19:17:58.087500Z

via clojure.java.shell

chrisn 2019-10-22T19:18:56.088100Z

There are better face detectors than MTCNN now though. I think there are a few of them in the deepinsight repo that contains insightface: https://github.com/deepinsight

chrisn 2019-10-22T19:22:26.088800Z

This version of MTCNN worked the best: https://github.com/ipazc/mtcnn

chrisn 2019-10-22T19:23:16.089500Z

OK, I have to stop 🙂. I could go on quite a bit. Good luck!

fabrao 2019-10-22T21:05:58.089900Z

thanks