-
-
Notifications
You must be signed in to change notification settings - Fork 334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add support for alternative emotion and body models #335
Comments
i took a quick look and decided its faster to just do it than to keep it on the to-do list i've also added one more feature:
for example, face detector would detect face box and then according to but emotion model is trained on much tighter cropped image so instead of messing with face in global, you can set i'm closing the issue as complete, but feel free to continue posting any questions. |
Thank you so much Vlad for publishing the new code so quickly! 🙏 |
Considering some times my pipeline processes bad-quality face images (e.g: small faces because of distance), I'm thinking about discarding blazeface detected boxes with less than configurable resolution (before crop and resizing). Given subsequent face models X (emotion) and Y (description), before resizing cropped face boxes, discard face boxes where: What do you think about it? Not sure if there's an existing preprocessing function to achieve this, otherwise if you think this could be helpful I can create a PR for your review. |
i like the idea. and all necessary code is already pretty much in place, just needed to add a filter statement. |
My god! Are you an AI bot or a real developer? Again thank you so much!! I couldn't be more grateful. I'll be sponsoring you later today for your hard work and responsiveness. |
Hi Vlad! Does human npm contains latest changes related emotion models & configs? I see the latest release is from Nov 22. |
not yet, it will be in version 3.0.5 which i'll publish either end of this week or early next week. |
Hi Vlad! Do you happen to have any updates regarding the next npm release? On other notes, did you ever consider integrating AlphaPose into the human library as an alternative body model? Thank you and have a great weekend! |
most likely monday. re: alphapose - i've looked at it before, looks really nice, but
if i'm going in a direction of heavy-weight model, might as well go all the way - for that i'm exploring metrabs model. |
Thank you for the update regarding the next deployment. btw, great work with the body-pose project (added a star on that one also). Totally understand is too much work to integrate AlphaPose.
|
It should be working, what's the problem?
Not really. I'd suggest to use hand model for that. Even blazepose estimation of hand is not that precise.
Is it really such a performance hit? |
Body detections are always empty even when the entire body is visible in the camera. |
i just took a look, seems like model is working, but there is something wrong with keypoint scores returned by latest version of the to confirm, model works fine if config.body = { enabled: true, minConfidence: -1, modelPath: 'https://raw.githubusercontent.com/vladmandic/human-models/main/models/movenet-multipose.json' }, update: yup, i'll report it to |
in my case, background was clear so there were no ghosts. but i'm affraid i cant do much until model itself returns a valid score (in any format) |
This depends on MediaPipe updating the model itself, right? Thank you so much for checking it out Vlad! On other notes, the npm human package is updated with the latest changes from what I can see, could you please confirm? |
right.
updated few hours ago and published on npm. |
I don't need the |
Hi Vlad, Any update from MediaPipe regarding the broken
I need multi-person body detection, and posenet doesn't have enough accuracy for my requirements (detecting elbow and wrist for user actions + count & track people in the video). I'd really like to test UPDATE: I don't think |
no feedback so far. and version i have is definitely buggy and its the latest version, i'll take a look at |
Do you think I don't understand why their demo works perfectly, attached you can find a screenshot of the detection and config. Is there any chance that the conversion of the model you made could be the problem? I see that when downloading the model from the hub, the weights are divided into 3 Should I create an issue in the repo to track this model troubleshooting? Thank you so much for looking into this Vlad! |
first, no need to open a separate issue anymore since i've figured out whats going on, but in the future please do not mix multiple issues - the subject line here is about alternative emotion models, anyhow, the issue is NOT with model weights (i prefer to have monolithic weights instead of split by 2mb which i feel is more like going back to 90ies, but it is the same model). the issue is in one specific tfjs webgl optimization which is disabled by default (so online tfjs demo works just fine), but i've been using for over a year now. anyhow, i've enabled a workaround so that optimization gets autodisabled if related issue is tensorflow/tfjs#7430 new code is published on github. |
Thank you so much for fixing this issue, and apologies for mixing conversations related to different issues, it won't happen again. Do you have an estimated date for the next npm release? I've been doing some research on alternatives pose estimation models that I'd like to share with you soon. Thank you for the support, Vlad! I'll continue sponsoring your hard work 💪 |
no plans right now. right now changes are too small to warrant a release, but tfjs 4.3.0 should be coming out soon, so i'll then do a full refresh and publish a release to be in-sync with latest version of tfjs. my best-guess is in 2-3 weeks tops. but you can install using npm direct from github, so that shouldn't be an issue?
of course not! |
Discussed in #334
Originally posted by nicoeiris11 January 31, 2023
Hi Vlad!
I'm using human in the browser and currently experiencing a very bad accuracy for emotion detection.
Using blazeface default model and the distance to the webcam is always around 2-3 meters
I'd like to know if there's an alternative model for emotion detection supported by human taking into account Oarriaga Emotion model has %66 test accuracy. In your model's wiki page you mention GEAR as an alternative. Is it possible to experiment with the GEAR emotion model instead of Oarriaga's for emotion? Looking at GEAR repo I can see the emotion classifier is independent of the GenderAgeRace model but not sure if the emotion model is supported by human or not.
Some additional questions:
Thank you!
The text was updated successfully, but these errors were encountered: