Datasets:
Update CC6204-Hackaton-Cub-Dataset.py
Browse files
CC6204-Hackaton-Cub-Dataset.py
CHANGED
@@ -43,7 +43,7 @@ _NAMES = list(_ID2LABEL.values())
|
|
43 |
# build from images.txt: a mapping from image_file_name -> id
|
44 |
imgpath_to_ids = get(_URLS["images"]).iter_lines()
|
45 |
_IMGNAME2ID = {}
|
46 |
-
for row in
|
47 |
row = row.decode("UTF8")
|
48 |
if row != "":
|
49 |
idx, img_name = row.split(" ")
|
|
|
43 |
# build from images.txt: a mapping from image_file_name -> id
|
44 |
imgpath_to_ids = get(_URLS["images"]).iter_lines()
|
45 |
_IMGNAME2ID = {}
|
46 |
+
for row in imgpath_to_ids:
|
47 |
row = row.decode("UTF8")
|
48 |
if row != "":
|
49 |
idx, img_name = row.split(" ")
|