-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Fer va estimation #264
Fer va estimation #264
Conversation
Hi, maybe there was a misunderstanding. It was correct for you to create your branch from the develop (since new additions like this should target develop, not master). The issue with your previous attempt likely was that when you created the branch, develop was not up to date or you committed unrelated stuff. In short you should:
|
Thank you for the comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I have added a few comments directly on files.
Furthermore, there are few additional points:
- Please make sure that you use the conventions for ROS argument passing (check also the names of the topics and arguments in ROS1 updates and fixes for several nodes #281)
- Should this file be empty src/opendr/perception/facial_expression_recognition/image_based_facial_emotion_estimation/README.md ?
- The demo is nice. However, for most other tools for inference demo, we provide small examples of how each tool can be used. This demo incorporates too much functionality (which is good, but it can be also hard for new users to follow). So I would propose to also include a small inference demo that runs on a single image and clearly imports and uses the learner (similar to other tools, e.g., https://github.com/opendr-eu/opendr/blob/master/projects/perception/lightweight_open_pose/demos/inference_demo.py). In this way it would be clear for new users how they should use the tool.
...ception/facial_expression_recognition/image_based_facial_emotion_estimation/dependencies.ini
Outdated
Show resolved
Hide resolved
...cts/perception/facial_expression_recognition/image_based_facial_emotion_estimation/README.md
Outdated
Show resolved
Hide resolved
...cts/perception/facial_expression_recognition/image_based_facial_emotion_estimation/README.md
Outdated
Show resolved
Hide resolved
...acial_expression_recognition/image_based_facial_emotion_estimation/facial_emotion_learner.py
Show resolved
Hide resolved
...ception/facial_expression_recognition/image_based_facial_emotion_estimation/dependencies.ini
Outdated
Show resolved
Hide resolved
This reverts commit ad88f72.
Thanks for the comments. |
@ad-daniel @negarhdr The ROS1 node now uses retina face, as the cv face detector proved problematic with the conversions required for ROS. I also included the publishing of an annotated image which draws bounding boxes with all facial emotion info printed on the corner of the box. I tested it with multiple faces and it works well. It is similar to the face recognition pipeline in the corresponding node. Note that it is quite slow, but the detector is far superior in the performed qualitative testing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When running the ROS node I'm getting this:
rosrun opendr_perception facial_emotion_estimation_node.py
[rospack] Error: package 'opendr_perception' not found
find: ‘’: No such file or directory
Tokenization took: 0.01 ms
however it doesn't prevent it from working, so not a big deal.
As for the demo, I've tested the webcam and it works nicely. Image and video are failing, from the error it seems to be related to the fact it cannot find the resources in the FTP server. @Pavlos-Tosidis has it been moved from owncloud? I think we forgot to ping him
Other than that, it looks good to me, thank you both!
Hmm that's weird, never gotten this error before. Maybe this helps? Thanks! |
Nevermind my bad, I did a |
...acial_expression_recognition/image_based_facial_emotion_estimation/facial_emotion_learner.py
Outdated
Show resolved
Hide resolved
@ad-daniel |
Went ahead and resolved the issue with the path in download. Also fixed the demo for image and video modes, as the cv2 operations to show the images were used incorrectly. Should be good to go now! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Working for me as well, thank you!
Sorry Daniel just merged hr pose estimation and there was a conflict. |
* facial_va_estimation added * names updated ros added * style fixed * style fixed * style fixed * demo&doc updated * doc&dependencies updated * demo updated * Revert "demo updated" This reverts commit ad88f72. * demo updated * ROS1 node updated * ROS1 node updated * ROS1 node updated * ros1_node fixed * ros1 fixed * diversity extention added * style fixed * benchmark added * folder moved * folder moved * benchmark updated * benchmark updated * benchmark updated * benchmark updated * benchmark updated * benchmark updated * benchmark updated * benchmark updated * benchmark updated * benchmark updated * benchmark updated * benchmark updated * benchmark updated * benchmark updated * benchmark updated * benchmark updated * model updated * model updated * model updated * model updated * download updated * code style fixed * Remove pkg-resources * Enforce torch dependency * tests updated * test_pstbln updated * tests updated * download updated * download updated * Update facial_emotion_learner.py * download updated * download updated * doc updated * doc updated * optimize updated * download updated * download updated * infer updated * optimize updated * optimize updated * optimize updated * optimize updated * code style fixed * code style fixed * code style fixed * Minor fixes * Update docs/reference/image_based_facial_emotion_estimation.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/image_based_facial_emotion_estimation.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/image_based_facial_emotion_estimation.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/image_based_facial_emotion_estimation.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/image_based_facial_emotion_estimation.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/image_based_facial_emotion_estimation.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/image_based_facial_emotion_estimation.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/image_based_facial_emotion_estimation.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update projects/opendr_ws/src/perception/scripts/facial_emotion_estimation.py Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/image_based_facial_emotion_estimation.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/image_based_facial_emotion_estimation.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/image_based_facial_emotion_estimation.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update src/opendr/perception/facial_expression_recognition/image_based_facial_emotion_estimation/facial_emotion_learner.py Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/image_based_facial_emotion_estimation.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Update docs/reference/image_based_facial_emotion_estimation.md Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> * Moved and applied several fixes on facial emotion ros node * Update projects/python/perception/facial_expression_recognition/image_based_facial_emotion_estimation/gui/grad_cam.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update projects/python/perception/facial_expression_recognition/image_based_facial_emotion_estimation/README.md Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update projects/python/perception/facial_expression_recognition/image_based_facial_emotion_estimation/README.md Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update projects/python/perception/facial_expression_recognition/image_based_facial_emotion_estimation/README.md Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update projects/python/perception/facial_expression_recognition/image_based_facial_emotion_estimation/README.md Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update src/opendr/perception/facial_expression_recognition/image_based_facial_emotion_estimation/facial_emotion_learner.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update src/opendr/perception/facial_expression_recognition/image_based_facial_emotion_estimation/facial_emotion_learner.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update src/opendr/perception/facial_expression_recognition/image_based_facial_emotion_estimation/facial_emotion_learner.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update src/opendr/perception/facial_expression_recognition/image_based_facial_emotion_estimation/facial_emotion_learner.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update src/opendr/perception/facial_expression_recognition/image_based_facial_emotion_estimation/facial_emotion_learner.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update src/opendr/perception/facial_expression_recognition/image_based_facial_emotion_estimation/facial_emotion_learner.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update docs/reference/image_based_facial_emotion_estimation.md Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update docs/reference/image_based_facial_emotion_estimation.md Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update docs/reference/image_based_facial_emotion_estimation.md Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update projects/python/perception/facial_expression_recognition/image_based_facial_emotion_estimation/README.md Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * Update projects/opendr_ws/src/opendr_perception/scripts/facial_emotion_estimation_node.py Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> * index.md, CHANGELOG.md updated * download added to demo * download is updated. Demo downloads image/video files. * evaluation results added to doc * benchmark updated * verbose added * init_model added * face detector path updated * fix sources * Inference demo argument fixes * fix download, fix demo, fix image preprocess in ros node * Learner device argument fix * demo implemented from scratch * style fixed * style fixed * style fixed * style fixed * ROS updated * ROS updated * ROS updated * ROS updated * Removed import for deleted script * Modify cv2 show window to update properly * ROS node now uses retina face detector and also outputs annotated images * ROS index addition of emotion estimation * Added ros node emotion estimation entry * Fixed video and img modes * fixed path in download Co-authored-by: Nikolaos Passalis <passalis@users.noreply.github.com> Co-authored-by: ad-daniel <44834743+ad-daniel@users.noreply.github.com> Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com> Co-authored-by: ad-daniel <daniel.dias@epfl.ch>
This PR adds image-based facial expression recognition and valence-arousal estimation.
It includes learner, unit-tests, demo, document, and ROS node.
This is a replacement for the previous PR which had conflicts with other tools.