alkzar90 commited on
Commit
9d9dbc4
·
1 Parent(s): 5d33583

Update CC6204-Hackaton-Cub-Dataset.py

Browse files
Files changed (1) hide show
  1. CC6204-Hackaton-Cub-Dataset.py +1 -1
CC6204-Hackaton-Cub-Dataset.py CHANGED
@@ -48,7 +48,7 @@ for row in imgpath_to_ids:
48
  row = row.decode("UTF8")
49
  if row != "":
50
  idx, img_name = row.split(" ")
51
- _IMGNAME2ID[img_name] = int(idx)
52
 
53
 
54
 
 
48
  row = row.decode("UTF8")
49
  if row != "":
50
  idx, img_name = row.split(" ")
51
+ _IMGNAME2ID[os.path.basename(img_name)] = int(idx)
52
 
53
 
54