Skip to content
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

Active_demo and some minor bug fixes on FaceRecognition #459

Merged
merged 12 commits into from
Nov 29, 2023

Conversation

Pavlos-Tosidis
Copy link
Collaborator

Changed Face Recognition inference return. Now class is 0/1 if not found/found
Added feature_extraction method to get access to features from a face image
Added active_demo in which features in database get updated with new features of the same person.

…und/found

Added feature_extraction method to get access to features from a face image
Added active_demo in which features in database get updated with new features of the same person.
@tsampazk tsampazk added test sources Run style checks test tools Test the toolkit methods labels Sep 4, 2023
Copy link
Collaborator

@omichel omichel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

From source tests, it seems there are some PEP8 errors, please check and fix them.

@tsampazk
Copy link
Collaborator

tsampazk commented Sep 4, 2023

This is pretty weird, the PEP8 tests fail at unrelated files from other tools with deprecation warnings for invalid escape characters in regex strings. Maybe these files were excluded from tests earlier, as they are in /algorithm directories.

Edit: these are warnings, they don't fail the tests 😄

@Pavlos-Tosidis Pavlos-Tosidis removed test sources Run style checks test tools Test the toolkit methods labels Sep 18, 2023
@thomaspeyrucain
Copy link
Contributor

Hello @Pavlos-Tosidis,

I am testing the tool and sometimes I get this error:

[ERROR] [1697016110.932028]: bad callback: <bound method FaceRecognitionNode.callback of <__main__.FaceRecognitionNode object at 0x7fcdc1274550>>
Traceback (most recent call last):
  File "/opt/ros/noetic/lib/python3/dist-packages/rospy/topics.py", line 750, in _invoke_callback
    cb(msg)
  File "/home/thomaspeyrucain/Desktop/OpenDR/opendr_pal_use_case/projects/opendr_ws/src/opendr_perception/scripts/face_recognition_node.py", line 180, in callback
    self.recognizer.database[result.description].append(features_to_compare)
AttributeError: 'Tensor' object has no attribute 'append'

@passalis passalis added test sources Run style checks test tools Test the toolkit methods labels Nov 6, 2023
@passalis
Copy link
Collaborator

passalis commented Nov 6, 2023

@Pavlos-Tosidis There seems to be pep8 errors still.

passalis and others added 5 commits November 15, 2023 08:05
* Finetuned yolov5 for trucks (#476)

* Yolov5 learner truck updates

* Yolov5 create an inference demo for the finetuned model

* Update object-detection-2d-yolov5.md

yolov5_learner.py documentation for download method

* Update object-detection-2d-yolov5.md

* Refactor yolov5_learner.py download process in constructor for efficiency

* Update docs/reference/object-detection-2d-yolov5.md

Co-authored-by: Nikolaos Passalis <passalis@users.noreply.github.com>

---------

Co-authored-by: Nikolaos Passalis <passalis@users.noreply.github.com>
Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com>

* Yolov5 trucks fixes (#487)

* Some fixes and additions on the yolov5 download method doc

* Minor addition for model name yolov5 trucks

* Some fixes for the yolov5 download method docstring

---------

Co-authored-by: Vasilis Moustakidis <45403400+BillMousta@users.noreply.github.com>
Co-authored-by: Nikolaos Passalis <passalis@users.noreply.github.com>
Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com>
Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>
A simple demo for active feature updates
A RosNode to be used by Pal_Robotics for the healthcare use case
Fixed pep8 errors
Added Readme's
Fixed pep8 errors
@passalis
Copy link
Collaborator

Thanks @Pavlos-Tosidis! Is this ready for review?

@Pavlos-Tosidis
Copy link
Collaborator Author

Yes this is ready to be reviewed

Copy link
Collaborator Author

@Pavlos-Tosidis Pavlos-Tosidis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed pep8 errors

@tsampazk tsampazk self-requested a review November 24, 2023 11:57
Copy link
Collaborator

@tsampazk tsampazk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @Pavlos-Tosidis for the new features! I have left some comments.

A general note: in all modified/new files, the retinaface detector is initialized with mnet which if i recall correctly is used to identify masked faces. Is this intented?

Pavlos-Tosidis and others added 2 commits November 24, 2023 16:01
…ecognition_node.py

Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>
…r.py

Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>
Copy link
Collaborator

@passalis passalis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

Copy link
Collaborator

@tsampazk tsampazk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

@passalis passalis dismissed omichel’s stale review November 29, 2023 09:26

Comments resolved.

@passalis passalis merged commit f2d4a78 into develop Nov 29, 2023
12 checks passed
@passalis passalis deleted the Active_FaceRecognition branch November 29, 2023 09:26
lucamarchionni pushed a commit to lucamarchionni/opendr that referenced this pull request Jun 10, 2024
* Changed Face Recognition inference return. Now class is 0/1 if not found/found
Added feature_extraction method to get access to features from a face image
Added active_demo in which features in database get updated with new features of the same person.

* Added final carriage return

* Develop (opendr-eu#489)

* Finetuned yolov5 for trucks (opendr-eu#476)

* Yolov5 learner truck updates

* Yolov5 create an inference demo for the finetuned model

* Update object-detection-2d-yolov5.md

yolov5_learner.py documentation for download method

* Update object-detection-2d-yolov5.md

* Refactor yolov5_learner.py download process in constructor for efficiency

* Update docs/reference/object-detection-2d-yolov5.md

Co-authored-by: Nikolaos Passalis <passalis@users.noreply.github.com>

---------

Co-authored-by: Nikolaos Passalis <passalis@users.noreply.github.com>
Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com>

* Yolov5 trucks fixes (opendr-eu#487)

* Some fixes and additions on the yolov5 download method doc

* Minor addition for model name yolov5 trucks

* Some fixes for the yolov5 download method docstring

---------

Co-authored-by: Vasilis Moustakidis <45403400+BillMousta@users.noreply.github.com>
Co-authored-by: Nikolaos Passalis <passalis@users.noreply.github.com>
Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com>
Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>

* Added:
A simple demo for active feature updates
A RosNode to be used by Pal_Robotics for the healthcare use case
Fixed pep8 errors
Added Readme's

* Added:
Fixed pep8 errors

* Update projects/opendr_ws/src/opendr_perception/scripts/active_face_recognition_node.py

Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>

* Update src/opendr/perception/face_recognition/face_recognition_learner.py

Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>

---------

Co-authored-by: Olivier Michel <Olivier.Michel@cyberbotics.com>
Co-authored-by: Nikolaos Passalis <passalis@users.noreply.github.com>
Co-authored-by: Vasilis Moustakidis <45403400+BillMousta@users.noreply.github.com>
Co-authored-by: Kostas Tsampazis <27914645+tsampazk@users.noreply.github.com>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
test sources Run style checks test tools Test the toolkit methods
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants