Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

empty API return for retrieve_annotations with format #5942

Closed
2 tasks done
timresink opened this issue Mar 27, 2023 · 2 comments
Closed
2 tasks done

empty API return for retrieve_annotations with format #5942

timresink opened this issue Mar 27, 2023 · 2 comments
Labels
question Further information is requested sdk/cli

Comments

@timresink
Copy link

timresink commented Mar 27, 2023

My actions before raising this issue

Hi all,
I am trying to load annotations through the CVAT low-level python SDK (v2.3.0). However, if I specify a format (I tried COCO 1.0, MOT 1.1, among others) then I only get a 202 with reason 'Accepted', but no data. However, when I do not specify a format I do get data in the response.

The API call I am making in Python looks like:

from cvat_sdk.api_client import ApiClient, Configuration
configuration = Configuration(
        host = host,
        username = user,
        password = pw
    )

with ApiClient(configuration) as api_client:
    (_, response) = api_client.jobs_api.retrieve_annotations(
            job_id,
            action='download',
            format='COCO 1.0', # or 'MOT 1.1'
            _parse_response=False
     )
    print(response.data)

Anyone any idea what could be at the source of this?

@zhiltsov-max
Copy link
Contributor

zhiltsov-max commented Apr 5, 2023

Hi, please read about file downloading protocol in CVAT here. Here you can find a code snippet for downloading.

@zhiltsov-max zhiltsov-max added question Further information is requested sdk/cli labels Apr 5, 2023
@zhiltsov-max
Copy link
Contributor

I will close the issue, don't hesitate to reopen it, if the problem is not resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested sdk/cli
Projects
None yet
Development

No branches or pull requests

2 participants