label-studio-ml-backend icon indicating copy to clipboard operation
label-studio-ml-backend copied to clipboard

Selected frame index in video Auto-Annotation predict method

Open zzv2 opened this issue 4 months ago • 0 comments

I am working on a custom version of the segment_anything_2_video ml backend and I was wondering if there is a way to obtain the currently selected video frame in the annotator in the predict method. I looked in both the context and the tasks objects that are passed to the predict method, but I could not find it.

For example, if I am doing video annotation, and I have frame 439 currently selected in the annotator window, and then I trigger the Auto-Annotation, I want to be able to have 439 passed to the predict method (in the context would make the most sense to me) or call some API or method within the predict method to retrieve the currently selected frame 439.

zzv2 avatar Jun 09 '25 20:06 zzv2