Replies: 2 comments 2 replies
-
you can adopt multithreading to run separate instance of human in each thread and use that as a thread pool. |
Beta Was this translation helpful? Give feedback.
-
Hi @vladmandic, I'm working on the same project as @julizet. During my multithreading investigation I stumbled across your live demo here: https://vladmandic.github.io/human/demo/index.html. In the Log output when
Log output when
|
Beta Was this translation helpful? Give feedback.
-
Hi @vladmandic,
first of all: thank's for this massive work on humanJS. The developer experience was great and it was a joy to code with it since the documentation is clear and its usage very straight forward.
However, we are facing some FPS performance issues with our current face detection prototype. It is a web-app using TS/JS, a webcam and the humanJS to detect faces in real-time, analyse properties like e.g. age, emotion, gender, gaze direction and mouth opening in order to create a parameterized, artsy Dall-E interpretation of it's user.
As long as we use an M2 machine that comes with a a lot of GPU we can reach enough frames per second (FPS) so the user experience is smooth. However, if we use an Intel i3, an Intel i5 or even a gamin laptop with slightly lower GPU we face some performance issues and reach a maximum of 7 to 14 FPS which make the prototype feel very laggy.
We found this multithreading demo of you but this (seems) to only handle multiple models and not synchronous FPS.
Do you have any idea how we could improve the FPS of our application – based on the code?
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions