Closed deepak046 closed 8 months ago
EDIT: I added the lines 361, 404, 410 and 420 from this script (https://github.com/wmuron/motpy/blob/master/motpy/tracker.py) to the same tracker.py file in the motpy pypi package that's used by deep_privacy2 repo, and the anonymize.py scripts runs now with --track flag!
This is how I solved the problem (for someone who could potentially face the same issue)
When I try to use --track flag to run anonymize.py I get the error saying that the object of MultiObjectTracker class doesn't have the attribute named 'detections_matched_ids'. From the motpy pypi package I installed, I checked the class definition for MultiObjectTracker class and it doesn't seem to have this attribute in it. The attribute 'detections_matched_ids' is referred in forward() function of Anonymizer class to retrieve the track_ids. But the attribute seems to be absent everywhere in the class definition of MultiObjectTracker class.
Whereas, I checked this script (https://github.com/wmuron/motpy/blob/master/motpy/tracker.py) from the motpy repository and they seem to have it defined as an attribute.
My question: Was the attribute 'detections_matched_ids' intentionally removed in this project repository? I feel it could be a mistake since you try to use the track_ids in Anonymizer class. Let me know if I'm missing out something! Thanks!