what is the exactly label?
iFighting opened this issue · 1 comments
iFighting commented
when i loaded the json file "val2017.json":
fin = open("val2017.json", 'r') data = json(fin) print data['categories'][662]['name']
i found that result is that Anas superciliosa × platyrhynchos, but i did not found the corresponding file in "train_val_images/Aves"
so what is the exactly label?
I found that "×" are 2 blanks.......
I recommend that use "-"or"_" to replace " "(blank)
gvanhorn38 commented
Good point. The categories names still have the escaped unicode characters for the species name. The directory structures were created by removing the unicode characters:
$ print(data['categories'][662]['name'].encode('ascii', 'ignore'))
'Anas superciliosa platyrhynchos'
The file paths stored in the image data structure should correspond to the escaped names:
$ print(val_data['images'][26931]['file_name'])
u'train_val_images/Aves/Anas superciliosa platyrhynchos/ebf340dbcdb22f7dff9936b13d957df3.jpg'