An open-source project dedicated to tracking and segmenting any objects in videos, either automatically or interactively. The primary algorithms utilized include the Segment Anything Model (SAM) for key-frame segmentation and Associating Objects with Transformers (AOT) for efficient tracking and propagation purposes.
When a new object appears, the object's ID has some issues. For example, when (frame_idx % sam_gap) == 0, the ID assigned to the newly detected object is the same as the last ID used previously. I have already solved this issue myself, but, I want to achieve that when a new object appears, the ID keeps increasing rather than being assigned the ID of a previously disappeared object. How can I implement this?
When a new object appears, the object's ID has some issues. For example, when (frame_idx % sam_gap) == 0, the ID assigned to the newly detected object is the same as the last ID used previously. I have already solved this issue myself, but, I want to achieve that when a new object appears, the ID keeps increasing rather than being assigned the ID of a previously disappeared object. How can I implement this?
(当新物体出现时,物体的id有点问题,例如当(frame_idx % sam_gap) == 0时,检测到的新物体的id,赋予的值是之前最后的id。这个问题我自己已经解决,但是目前想实现,当新的物体出现时,idx一直递增,而不是赋予前面追踪消失的idx,请问怎么实现)