Update IDD.py
Browse files
IDD.py
CHANGED
|
@@ -117,7 +117,7 @@ class IDD(datasets.GeneratorBasedBuilder):
|
|
| 117 |
# TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
| 118 |
idx = 0
|
| 119 |
#itrate trough images
|
| 120 |
-
|
| 121 |
yield idx, {
|
| 122 |
"image": {"filepath": file_path, 'image': image.read()}
|
| 123 |
}
|
|
|
|
| 117 |
# TODO: This method handles input defined in _split_generators to yield (key, example) tuples from the dataset.
|
| 118 |
idx = 0
|
| 119 |
#itrate trough images
|
| 120 |
+
for file_path , image in images:
|
| 121 |
yield idx, {
|
| 122 |
"image": {"filepath": file_path, 'image': image.read()}
|
| 123 |
}
|