cvhciKIT / sloth

Sloth is a tool for labeling image and video data for computer vision research.
Other
608 stars 199 forks source link

about interpolate range #127

Closed cemysf closed 7 years ago

cemysf commented 7 years ago

hello, is there any guide about using the "interpolate range" option?

it sounds useful but I couldn't find anything in the official documentation, also when I try to apply it gives this error:

Error: Annotation count differs in first and last labeled frames, aborting

nilsonholger commented 7 years ago

Nope, sorry, but no documentation (yet). This was a quick hack, and while it's in there already, it's not yet considered mature enough. But your error seems to be very clear IHMO...you're trying to interpolate between two frames with a different number of annotations, which this feature simply can't do, as its linearly interpolating between two given annotation lists, in the order they appear in that list. You can check annotations/model.py for further information.

nilsonholger commented 7 years ago

So, I looked into this a bit further. It seems likely that your problem is caused by multiple issues...the short answer would be "you're using it wrong"...the elaborated answer "it's complicated"...

Hope this helps a bit, again, the interpolate function is not yet mature enough and we definitely need to fix a few things and especially document it, so pull requests welcome!!! (it was published upstream already only because we were asked by multiple sources whether such functionality exists, which it already did, so sorry for the confusion)

cemysf commented 7 years ago

ok, I can use it now it looks like it is working for just one annotation in two files, but it fails with multiple annotations

I will try to fix it, thank you very much for your help