xingyizhou / UniDet

Object detection on multiple datasets with an automatically learned unified label space.
489 stars 58 forks source link

Convert annotations of OpenImages to COCO format #2

Open LitPrice opened 3 years ago

LitPrice commented 3 years ago

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

LitPrice commented 3 years ago

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

Lancelot365 commented 3 years ago

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

LigZhong commented 3 years ago

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

FuNian788 commented 2 years ago

Same problem and need help

FuNian788 commented 2 years ago

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
jiangzhengkai commented 2 years ago

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

scale14091618 commented 1 year ago

Is there any solution to this problem yet?

doem97 commented 1 year ago

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

wikiwen commented 1 year ago

same problem @xingyizhou