Closed shiquanwang closed 7 years ago
okapy is an internal library used in our group. Theoretically you shouldn't need it and sloth should fall back to using PIL for loading images if it can't find it.
If you are using videos, you can try #87 .
I agree that the dependency on okapy is less than optimal, especially since we can't open source it for various reasons. I'd like to remove the okapy dependency completely at some point, probably best by abstracting out video and image sources, but haven't gotten around to do it yet... :(
The API of the okapy stuff should be self-explaining. So feel free to replace those calls with other established python libraries.
@shiquanwang is it just an installation problem or does the loading of images fail even when you have PIL installed ?
@baeuml the installation is smooth. I need to annotate a video file and okapy is needed in the error message when add the file.
OK. Did you manage to try PR #87? Does it work for you?
@baeuml Yes I tried and not working.
:( Could you maybe post the error/problem in the thread of #87 ? Maybe Alex can take a look.
Another option would be for you to burst your video into single frames and work those images. That is actually what I did most of the time because one has to deal with video decoding only once, while bursting.
You can then add all single frames via the command line to your label file:
sloth appendfiles [options] <labelfile> <file1> [<file2> ...]
for example:
sloth appendfiles mylabels.json *.jpg
HTH until we have a working video solution.
I searched around but can't find
okapy
for install (pypi, in this project, google, etc..)Please help