Update fixtures-captioning.py
Browse files- fixtures-captioning.py +1 -2
fixtures-captioning.py
CHANGED
|
@@ -71,9 +71,8 @@ class FixturesCaptioning(datasets.GeneratorBasedBuilder):
|
|
| 71 |
]
|
| 72 |
def _generate_examples(self, archive_path):
|
| 73 |
"""Generate examples."""
|
| 74 |
-
ordered_list = ["bbox_sample_image.jpeg", "bus.png", "chart.png", "skateboard.png"]
|
| 75 |
for i, filename in enumerate(archive_path):
|
| 76 |
-
key =
|
| 77 |
example = {
|
| 78 |
"id": key,
|
| 79 |
"file": filename,
|
|
|
|
| 71 |
]
|
| 72 |
def _generate_examples(self, archive_path):
|
| 73 |
"""Generate examples."""
|
|
|
|
| 74 |
for i, filename in enumerate(archive_path):
|
| 75 |
+
key = str(i)
|
| 76 |
example = {
|
| 77 |
"id": key,
|
| 78 |
"file": filename,
|