You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Whenever using the piece of code below. The annotations don't seem to want to download or sometimes download but without any good reason.
_, res=project_api.retrieve_annotations(
"CVAT for images 1.1",
project.id,
_parse_response=False,
action="download",
)
I sometimes get HTTP errors but this is not stable.
Expected Behaviour
The function .retrieve_annotations should always return the same result with the same params.
Current Behaviour
The function sometimes work and sometimes returns HTTP errors.
Possible Solution
I believe that CVAT caches the annotation ZIP. And whenever the file is in cache, the CVAT SDK is able to download it.
But if the ZIP isn't in cache, then the retrieve_annotations method will crash.
Whenever I need to download the annotations from my CVAT SDK, I first download it from the UI, then I relaunch my script and it works.
Context
I want to retrieve annotations for my images like I can form the CVAT UI.
Hi, the downloading requires several requests, please read this answer about dataset downloading protocol. Everything is the same for downloading annotations. Please also consider using the high-level SDK, which allows downloading annotations and datasets simpler.
My actions before raising this issue
Steps to Reproduce (for bugs)
Whenever using the piece of code below. The annotations don't seem to want to download or sometimes download but without any good reason.
I sometimes get HTTP errors but this is not stable.
Expected Behaviour
The function
.retrieve_annotations
should always return the same result with the same params.Current Behaviour
The function sometimes work and sometimes returns HTTP errors.
Possible Solution
I believe that CVAT caches the annotation ZIP. And whenever the file is in cache, the CVAT SDK is able to download it.
But if the ZIP isn't in cache, then the
retrieve_annotations
method will crash.Whenever I need to download the annotations from my CVAT SDK, I first download it from the UI, then I relaunch my script and it works.
Context
I want to retrieve annotations for my images like I can form the CVAT UI.
Your Environment
The text was updated successfully, but these errors were encountered: