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

Example for pre-annotating videos with custom model and tracker

Open ozayr opened this issue 2 years ago • 5 comments

ozayr avatar Jan 03 '23 15:01 ozayr

We don't have such an example yet, however you can contribute it :-)

  1. You can check how to prepare pre-annotations for LS here: https://labelstud.io/guide/predictions.html#Format-pre-annotations-for-Label-Studio

  2. As object tracker model you can try Yolo + Deep Sort

  3. How to write ML model wrapper for LS: https://labelstud.io/guide/ml_create.html

makseq avatar Jan 11 '23 01:01 makseq

I am currently facing the issue where the entire model class is build re-instantiated when ever a predict request is made, I have not dug into the flask code to figure out why. Any idea why this is happening I would assume the class is created once and then the endpoint just calls its predict function. Like this I cannot save object tracks in BaseModel class hence my asking for an example with a custom model and tracker.

ozayr avatar Jan 11 '23 07:01 ozayr

Hi @ozayr Do you use active learning? Please check if you have webhook enabled in project settings

KonstantinKorotaev avatar Jan 17 '23 08:01 KonstantinKorotaev

@ozayr Have you achieved it?

xiazi-yu avatar Aug 13 '24 02:08 xiazi-yu

@makseq The number of image frames decoded by the ML model and Label Studio doesn't match. Is there any way to fix this?

xiazi-yu avatar Aug 14 '24 02:08 xiazi-yu