Update objects.py
Browse files- objects.py +1 -1
objects.py
CHANGED
@@ -71,6 +71,6 @@ class Objects(datasets.GeneratorBasedBuilder):
|
|
71 |
for filepath, image in images:
|
72 |
yield idx, {
|
73 |
"image": {"path": filepath, "bytes": image.read()},
|
74 |
-
"text" : DICT_DESC[filepath.split("/")[-1]],
|
75 |
}
|
76 |
idx+=1
|
|
|
71 |
for filepath, image in images:
|
72 |
yield idx, {
|
73 |
"image": {"path": filepath, "bytes": image.read()},
|
74 |
+
"text" : DICT_DESC[filepath.split("/")[-1].lower()],
|
75 |
}
|
76 |
idx+=1
|