Datasets:
Update CC6204-Hackaton-Cub-Dataset.py
Browse files
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 |
|