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

Impossible to upload Pre-Annotated data #16

Open
davidggphy opened this issue Jan 22, 2020 · 5 comments
Open

Impossible to upload Pre-Annotated data #16

davidggphy opened this issue Jan 22, 2020 · 5 comments

Comments

@davidggphy
Copy link

davidggphy commented Jan 22, 2020

Hello everyone,

No matter how I try to upload the pre-annotated data in an Image Classification Project:

  • Through the web app, uploading a txt file as indicated in the web.
  • Through the web app, uploading a json file like the one you download when you have annotated data.
  • Through the API, uploading a json file like the one you download when you have annotated data.

In all cases it finds no images ( 0 HITS).

How is it possible to upload pre-annotated data?

Thanks in advance.

@GokulNC
Copy link

GokulNC commented Jan 28, 2020

Please mention the task name (project type) for which you're facing this issue.

@davidggphy
Copy link
Author

Image Classification Project

@krismp
Copy link

krismp commented Dec 16, 2020

@davidggphy did you manage to upload pre-annotated data using the json file downloaded from the project? Mine not working, it returns:

{
    "code": 400,
    "message": "Please upload a txt file containing only URLs in each line."
}

and also the format should be .txt

@davidggphy
Copy link
Author

@krismp I was not able, but I haven't tried again for a long time.

@krismp
Copy link

krismp commented Dec 22, 2020

@davidggphy or everyone who might need it. After I read the source code, to upload pre-annotated data you need to add query params format with possible values:

  • UNSPECIFIED,
  • PRE_TAGGED_JSON,
  • PRE_TAGGED_TSV,
  • URL_FILE

So to upload preannoted data, the URL should be:
http:///dtAPI/v1/<project_owner>/<project_name>/upload?format=PRE_TAGGED_JSON

and you good to go. Hope this helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants