FoundationPose icon indicating copy to clipboard operation
FoundationPose copied to clipboard

Detect when tracking is lost

Open TomiAijala opened this issue 1 year ago • 6 comments

Hello. Is there a way to detect when tracking of an object is lost and the pose needs to be re-initialized? Is there a confidence score or something similar available for the produced pose during tracking to help with detecting when tracking is no longer reliable?

TomiAijala avatar May 24 '24 06:05 TomiAijala

Hi, one thing to try is to send the pose to score network and see the score. Then set some threshold accordingly.

wenbowen123 avatar May 27 '24 19:05 wenbowen123

Hi @wenbowen123 how can I do that please I'm struggling with the same issue.

assia855 avatar Jul 03 '24 14:07 assia855

Hi, one thing to try is to send the pose to score network and see the score. Then set some threshold accordingly.

The problem I have with this approach is that the score varies too much. Even if the pose is still correct, the scorer returns a completely different number due to the slightly different orientation of the object. I tried to use the initial score and make use of the deviation.

Marco2929 avatar Feb 12 '25 10:02 Marco2929

@Marco2929 did you figure out how to re-initialize the pose based on scores corresponding to occlusion or when there is loss of tracking?

PannagaS avatar Mar 06 '25 22:03 PannagaS

@PannagaS Yes, I used two different thresholds. The first detects whether the object is occluded or missing, as the score rises quickly in such cases. The second ensures that reinitialization worked correctly and that the object is back in the scene, where the score tends to return to its original value. One problem is that repeated reinitialization lowers the frame rate.

Marco2929 avatar Mar 06 '25 22:03 Marco2929

@Marco2929 Yeah, even I observed that repeated reinitialization lowers the frame rate. Can you share with me that block of code where you included thresholds? Is it in def track_one() in estimator.py ? I desperately need help with this.

PannagaS avatar Mar 06 '25 22:03 PannagaS