Correct masks but wrong classes over time
rmarcuzzi opened this issue · 1 comments
Hi, and thanks a lot for the great work!
I'm using the model to perform segmentation and tracking on a sequence of images. I'm using the grounded_sam2_tracking_demo_with_continuous_id_plus.py
.
The consecutive images look like this:
I'm using as prompt text = "car. road. truck. person. building. tree. grass."
and the result looks very good!
However, after a couple of steps, the masks and IDs are consistent but the classes change as shown here:
For example, the road is correctly segmented and keeps the ID 2 but the class changes to person. The same happens with mask 11 which changes from truck (correct class) to road.
For the following predictions, the same happens. The masks and IDs are correct but some the classes change again.
I was wondering how to solve this problem or whether is a problem when saving the classes for visualization.
Thanks a lot!