Closed Pavlos-Tosidis closed 10 months ago
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 :smile:
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'
@Pavlos-Tosidis There seems to be pep8 errors still.
Thanks @Pavlos-Tosidis! Is this ready for review?
Yes this is ready to be reviewed
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.