hkchengrex / Tracking-Anything-with-DEVA

[ICCV 2023] Tracking Anything with Decoupled Video Segmentation
https://hkchengrex.com/Tracking-Anything-with-DEVA/
Other
1.27k stars 129 forks source link

Parameter Adjustment in Automatic Mode and Objects Reappearance Problem #80

Closed dhgras closed 7 months ago

dhgras commented 7 months ago

Hello, this is a great work and it has been very helpful to me! Thank you! My device has a RTX 4090 with 24GB VRAM. Currently, I am running the automatic mode demo script on multiple different RGB image sequences. There are two confusing questions for me now:

I hope to receive your reply or some useful suggestions from others. Thank you.

hkchengrex commented 7 months ago
  1. OOM usually arises from having too many objects in the memory. You can reduce max_missed_detection_count to more readily delete unseen objects, reduce max_num_objects to cap the maximum number of object memory, reduce SAM_NUM_POINTS_PER_SIDE to reduce the number of detected objects, or reduce size to reduce the image resolution.
  2. This is related to (1). We delete unseen objects after they have not been detected for max_missed_detection_count times. Increasing it will help re-discover some of the objects, but increase memory usage.

We are looking at ways to reduce the total memory usage but we don't have a timeline yet.

dhgras commented 7 months ago

Okay, I will try your suggestion. Thank you for your reply!