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

Creating project with REST API gives a project with no labels #5750

Closed
IdoKarlinskiAB opened this issue Feb 22, 2023 · 2 comments
Closed

Creating project with REST API gives a project with no labels #5750

IdoKarlinskiAB opened this issue Feb 22, 2023 · 2 comments
Labels
question Further information is requested

Comments

@IdoKarlinskiAB
Copy link

My actions before raising this issue

I am new to CVAT, I tried to create a basic project with some labels from the REST API,
I got response with status code 201 and the project shows in the UI but with no labels.
this is the payload for my post request -
payload = {
"name": 'project_from_rest_api',
"labels": [ {'name': 'car', 'color': '#2080c0',
'attributes': [{'id': 7, 'name': 'is_truncated',
'mutable': True,
'input_type': 'radio',
'default_value': 'true', 'values': ['true', 'false']}],
'type': 'rectangle', 'sublabels': [], 'has_parent': False}],
"owner_id": 1,

}
am I using wrong syntax to add labels?

@zhiltsov-max
Copy link
Contributor

zhiltsov-max commented Feb 22, 2023

Hi! This seems to be fixed in the current develop branch, could you please upgrade your branch and check?

@zhiltsov-max zhiltsov-max added bug Something isn't working server labels Feb 22, 2023
@zhiltsov-max zhiltsov-max added question Further information is requested and removed bug Something isn't working server labels Feb 22, 2023
@Qalababbass
Copy link

Hi, I had a similar task where i needed to create tasks in a pre-defined project in CVAT using CVAT REST API. I am also uploading images to these tasks. There are some other methods too for debug.
Maybe it will be helpful for somebody new at CVAT.
CVAT_REST_API

Happy for my contribution.

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

No branches or pull requests

4 participants