cvat-ai / cvat

Annotate better with CVAT, the industry-leading data engine for machine learning. Used and trusted by teams at any scale, for data of any scale.
https://cvat.ai
MIT License
12.49k stars 2.99k forks source link

Add message in UI when raw labels are wrong #1498

Closed smartnet-club closed 4 years ago

smartnet-club commented 4 years ago

While creating new task, Raw label field doesn't work.

Expected Behaviour

Labels created by Raw field

Current Behaviour

Pressing Done, labels appear in Constructor field, but on Submit the error: Could not create a task A task must contain at least one label

Possible Solution

Steps to Reproduce (for bugs)

  1. Open new task page.
  2. Fill Raw field by label json and press Done
  3. Fill other task fields
  4. Pres Submit

Context

Your Environment

Next steps

You may join our Gitter channel for community support.

bsekachev commented 4 years ago

@smartnet-club

Could not reproduce the issue. Could you please provide labels specification you used?

smartnet-club commented 4 years ago

[ { "name": "7790895000829", "attributes": [ { "name": "color", "type": "radio", "mutable": false, "values": [ "green" ] }, { "name": "name", "type": "text", "mutable": false, "values": [ "sprite bottle" ] } ] }, { "name": "7790895000782", "attributes": [ { "name": "color", "type": "radio", "mutable": false, "values": [ "black" ] }, { "name": "name", "type": "text", "mutable": false, "values": [ "coke bottle" ] } ] } ]

bsekachev commented 4 years ago

@smartnet-club

Please change all type to input_type (Related #1284) But nevertheless we should add a message if specification is wrong.

smartnet-club commented 4 years ago

Thanks!

bsekachev commented 4 years ago

Let's leave the issue opened till we have added a warning in UI