You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm currently working on extending the SAM2 video tracking (example) to support tracking multiple objects, as currently, only a single object can be tracked.
After diving into the example code (and fixing unrelated issues such as [#656]), I've found that the primary limitation seems to be related to the context parameter passed to the predict method. If I understand correctly, this parameter only contains information about the current label added by the user, and lacks context about other existing labels.
Is there a way to pass the full "context" to the predict method so that all existing labels are accessible during the tracking?
Here is my labeling interface setup:
<View>
<Labelsname="videoLabels"toName="video"allowEmpty="true">
<Labelvalue="Man"background="blue"/>
<Labelvalue="Woman"background="red"/>
<Labelvalue="Other"background="green"/>
</Labels>
<!-- Please specify FPS carefully, it will be used for all project videos -->
<Videoname="video"value="$video"framerate="25.0"/>
<VideoRectanglename="box"toName="video" />
</View>
<!--{ "video": "/static/samples/opossum_snow.mp4"}-->
The text was updated successfully, but these errors were encountered:
I'm currently working on extending the SAM2 video tracking (example) to support tracking multiple objects, as currently, only a single object can be tracked.
After diving into the example code (and fixing unrelated issues such as [#656]), I've found that the primary limitation seems to be related to the
context
parameter passed to thepredict
method. If I understand correctly, this parameter only contains information about the current label added by the user, and lacks context about other existing labels.Is there a way to pass the full "context" to the
predict
method so that all existing labels are accessible during the tracking?Here is my labeling interface setup:
The text was updated successfully, but these errors were encountered: