Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Improve SAM2 Tracking in Dense Object Scenarios to Avoid Full Resets #801

Open
1 task done
SongJgit opened this issue Jan 16, 2025 · 1 comment
Open
1 task done
Labels
Clarified Tag for issues that are clearly agreed upon question Further information is requested

Comments

@SongJgit
Copy link

Search before asking

  • I have searched the X-AnyLabeling Docs and issues and found no similar questions.

Question

hello,你好,我有些问题想要咨询一下,关于sam2进行交互式多目标跟踪标注的。
我发现了一个问题,如果是密集场景的话,有新目标加入,就要清空当前帧的所有目标然后重置跟踪器。但是这样有些太麻烦了,密集目标可能有几十上百个,每一个都重新标注还需要和之前的帧对齐id。有没有什么解决方案可以尽可能的跳过这个重新标注已有目标的方法。
尝试了复制前一帧标签的方法,但是似乎这样,SAM2不会跟踪已有目标

Additional

No response

@SongJgit SongJgit added the question Further information is requested label Jan 16, 2025
@CVHub520
Copy link
Owner

Hello! @SongJgit, Thank you for bringing this to our attention. You're absolutely correct; currently, when a new target appears in a dense scene, it requires clearing all existing targets in the current frame and resetting the tracker. This is indeed not ideal for dense object tracking scenarios.

The core issue lies in correctly passing the current coordinate information to the self.prompts variable.

Unfortunately, I likely won't have the bandwidth to optimize this in the near future. If you're able to, we'd greatly appreciate it if you could attempt to implement a solution and submit a Pull Request (PR)! I'm happy to provide assistance and guidance.

Specifically, you can focus on this section of the code.

If you have any further questions, please don't hesitate to ask! 😄

@CVHub520 CVHub520 added the Clarified Tag for issues that are clearly agreed upon label Jan 16, 2025
@CVHub520 CVHub520 changed the title 关于SAM2密集标注的问题 Feature Request: Improve SAM2 Tracking in Dense Object Scenarios to Avoid Full Resets Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Clarified Tag for issues that are clearly agreed upon question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants