cvat icon indicating copy to clipboard operation
cvat copied to clipboard

COCO json with category ID: 0 not loading

Open kkmehta03 opened this issue 2 years ago • 4 comments

My actions before raising this issue

  • [x] Read/searched the docs
  • [x] Searched past issues

Unable to upload COCO json annotations when category ID starts from 0

Expected Behaviour

Upload all annotations

Current Behaviour

image

can\t import annotation #0 (bbox) error.

Possible Solution

Steps to Reproduce (for bugs)

Context

The COCO json is exported from fiftyone dataset view as shown here

Your Environment

  • Git hash commit (git log -1):
  • Docker version docker version (e.g. Docker 17.0.05):
  • Are you using Docker Swarm or Kubernetes?
  • Operating System and version (e.g. Linux, Windows, MacOS):
  • Code example or link to GitHub repo or gist to reproduce problem:
  • Other diagnostic information / logs:
    Logs from `cvat` container

Next steps

You may join our Gitter channel for community support.

kkmehta03 avatar Jul 14 '22 11:07 kkmehta03

@kirill-sizov @yasakova-anastasia Could you please comment on the issue?

bsekachev avatar Aug 29 '22 13:08 bsekachev

I was able to reproduce this issue.

yasakova-anastasia avatar Oct 21 '22 09:10 yasakova-anastasia

Hi, the id 0 in COCO format is reserved to mean "no label".

Related https://github.com/openvinotoolkit/datumaro/issues/733

UPD: I think, we could add a special import option in Datumaro to specify the "no label" id, or to add a special handling for id = 0 in CVAT, as it's not possible to import annotations without labels in CVAT.

zhiltsov-max avatar Oct 25 '22 16:10 zhiltsov-max