Fix for COCO2017 naming
* Fix for COCO2017 naming
- fix for program/object-detection-tf-py/ck_utils.py for
dataset COCO2017 file naming
* Add comments to ck_utils.py
@@ -105,6 +105,11 @@ def filename_to_id(file_name, dataset_type):
# In COCO dataset ID is a number which is a part of filename
if dataset_type == COCO:
+ # COCO 2017: 000000000139.jpg
+ # COCO 2014: COCO_val2014_000000000042.jpg
+ if short_name[0] == '0':
+ return int(short_name)
+ else:
return int(re.split(r'_', short_name)[2])
# In OpenImages dataset image identifies by its name
