agimus-project / happypose

Toolbox and trackers for object pose-estimation. Based on the work CosyPose and MegaPose
https://agimus-project.github.io/happypose/
BSD 2-Clause "Simplified" License
22 stars 8 forks source link

Detector and detection names incompatbility between CosyPose and MegaPose #177

Open ElliotMaitre opened 2 months ago

ElliotMaitre commented 2 months ago

Following the objective of having the same code for the detector of MegaPose and CosyPose, there might be an incompatibility of naming for the detected objects.

Currently, in cosypose/integrated/detector.py, line 27, there is a change of ds_name to adapt the name of ycbv.bop19 to ycbv. I am unsure why it was needed in the first hand, but I guess a similar problem could arise for other datasets ? Is this a naming issue between MegaPose and CosyPose ?

MedericFourmy commented 2 months ago

https://github.com/agimus-project/happypose/blob/606c1453d28539a9ad821b598f2b73d3fe3974ee/happypose/pose_estimators/cosypose/cosypose/integrated/detector.py#L25

MedericFourmy commented 2 months ago

I'm not sure either, all tests and examples only use the Detector class present in Megapose. https://github.com/agimus-project/happypose/blob/dev/happypose/pose_estimators/megapose/inference/detector.py

As for cosypose Detector class (which is pretty much the same as you were mentioning), it is used only in a handful of evaluation script that we (in my knowledge) are not currently attempting to support:

If we actually need to support some of those, then we need to change cosy Detector to the megapose one and run them to see if it works, then we will be able to remove cosypose Detector.