mukesh3444
commited on
Commit
•
04f1e7f
1
Parent(s):
c659ae0
solved key error
Browse files- manual-window-detect.py +1 -1
manual-window-detect.py
CHANGED
@@ -94,5 +94,5 @@ class ManualWindowDetect (datasets.GeneratorBasedBuilder):
|
|
94 |
yield idx, {
|
95 |
"image": os.path.join(images_dir, image_file),
|
96 |
"annotation": os.path.join(annotations_dir, image_id + ".png"),
|
97 |
-
"scene_category": image_id2cat.loc[image_id, "scene_category"]
|
98 |
}
|
|
|
94 |
yield idx, {
|
95 |
"image": os.path.join(images_dir, image_file),
|
96 |
"annotation": os.path.join(annotations_dir, image_id + ".png"),
|
97 |
+
"scene_category": image_id2cat.loc[int(image_id), "scene_category"]
|
98 |
}
|