UniDet icon indicating copy to clipboard operation
UniDet copied to clipboard

Convert annotations of OpenImages to COCO format

Open LitPrice opened this issue 3 years ago • 9 comments

Hi Xingyi,

Thanks for you wonderful and easy to use work! I have prepare OpenImages dataset.

However, when I use projects/UniDet/tools/convert_datasets/convert_oid.py to convert training annotations.

There is an error: sets train converting train data Traceback (most recent call last): File "projects/UniDet/tools/convert_datasets/convert_oid.py", line 276, in original_image_annotations = csvread(os.path.join(base_dir, 'annotations', image_label_sourcefile)) NameError: name 'image_label_sourcefile' is not defined

'image_label_sourcefile' is not defined when converting training annotations, I don't know how to solve it? Could you give me the solution? Thanks

  • Links to the relevant documentation/comment: https://github.com/xingyizhou/UniDet/blob/master/projects/UniDet/unidet_docs/DATASETS.md

LitPrice avatar Mar 08 '21 09:03 LitPrice

There are not train_sizes-00000-of-00001.csv and validation_sizes-00000-of-00001.csv. How can I get them?

LitPrice avatar Mar 08 '21 10:03 LitPrice

Yes I have found the same problem. Luckily I have already converted OI to COCO format previously.

Lancelot365 avatar Apr 09 '21 17:04 Lancelot365

I also encounter this problem. Need some help, Thanks.

LigZhong avatar Jun 02 '21 08:06 LigZhong

Same problem and need help

FuNian788 avatar Jul 14 '22 03:07 FuNian788

some mistakes in Dataset.md

  1. 'For your convenience, we have packed up all converted annotation files here.' but the annotation files link is False
  2. python tools/convert_datasets/convert_oid.py -p datasets/oid/ --subsets val --expand_label,but codes can not run without 'challenge-2019-validation-detection-human-imagelabels_expanded.csv' which is not provided. We thank for your open source repo, but three are too many bugs to reproduce. Hope fix

FuNian788 avatar Jul 14 '22 06:07 FuNian788

@xingyizhou meet same questions. Could you help to fix above issues?

jiangzhengkai avatar Jul 20 '22 12:07 jiangzhengkai

Is there any solution to this problem yet?

scale14091618 avatar Oct 29 '22 09:10 scale14091618

Yes I have found the same problem. Luckily I have already converted OI to COCO format previously.

Hi bro how you make through this? May you please show us how to convert

doem97 avatar Dec 06 '22 12:12 doem97

same problem @xingyizhou

wikiwen avatar Dec 15 '22 07:12 wikiwen