Update fixtures-captioning.py
Browse files- fixtures-captioning.py +3 -1
fixtures-captioning.py
CHANGED
@@ -31,7 +31,7 @@ class FixturesCaptioningConfig(datasets.BuilderConfig):
|
|
31 |
self.data_url = data_url
|
32 |
self.url = url
|
33 |
self.task_templates = task_templates
|
34 |
-
|
35 |
class FixturesCaptioning(datasets.GeneratorBasedBuilder):
|
36 |
"""Fixtures for captioning and VQA models. Includes 4 images."""
|
37 |
BUILDER_CONFIGS = [
|
@@ -43,6 +43,7 @@ class FixturesCaptioning(datasets.GeneratorBasedBuilder):
|
|
43 |
)
|
44 |
]
|
45 |
DEFAULT_CONFIG_NAME = "image"
|
|
|
46 |
def _info(self):
|
47 |
return datasets.DatasetInfo(
|
48 |
description=_DESCRIPTION,
|
@@ -57,6 +58,7 @@ class FixturesCaptioning(datasets.GeneratorBasedBuilder):
|
|
57 |
citation=_CITATION,
|
58 |
)
|
59 |
def _split_generators(self, dl_manager):
|
|
|
60 |
DL_URLS = [
|
61 |
f"https://huggingface.co/datasets/hf-internal-testing/fixtures-captioning/raw/main/{name}"
|
62 |
for name in self.ordered_images_list
|
|
|
31 |
self.data_url = data_url
|
32 |
self.url = url
|
33 |
self.task_templates = task_templates
|
34 |
+
|
35 |
class FixturesCaptioning(datasets.GeneratorBasedBuilder):
|
36 |
"""Fixtures for captioning and VQA models. Includes 4 images."""
|
37 |
BUILDER_CONFIGS = [
|
|
|
43 |
)
|
44 |
]
|
45 |
DEFAULT_CONFIG_NAME = "image"
|
46 |
+
self.ordered_images_list = ["bbox_sample_image.jpeg", "bus.png", "chart.png", "skateboard.png"]
|
47 |
def _info(self):
|
48 |
return datasets.DatasetInfo(
|
49 |
description=_DESCRIPTION,
|
|
|
58 |
citation=_CITATION,
|
59 |
)
|
60 |
def _split_generators(self, dl_manager):
|
61 |
+
|
62 |
DL_URLS = [
|
63 |
f"https://huggingface.co/datasets/hf-internal-testing/fixtures-captioning/raw/main/{name}"
|
64 |
for name in self.ordered_images_list
|