label-studio-ml-backend
label-studio-ml-backend copied to clipboard
Selected frame index in video Auto-Annotation predict method
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.