Datasets:
Upload dataset.py with huggingface_hub
Browse files- dataset.py +3 -0
dataset.py
CHANGED
|
@@ -3,9 +3,12 @@ import datasets
|
|
| 3 |
|
| 4 |
class CocoBaseEval(datasets.GeneratorBasedBuilder):
|
| 5 |
VERSION = datasets.Version("1.0.0")
|
|
|
|
|
|
|
| 6 |
|
| 7 |
def _info(self):
|
| 8 |
return datasets.DatasetInfo(
|
|
|
|
| 9 |
features=datasets.Features({
|
| 10 |
"image_id": datasets.Value("int32"),
|
| 11 |
"image": datasets.Image(),
|
|
|
|
| 3 |
|
| 4 |
class CocoBaseEval(datasets.GeneratorBasedBuilder):
|
| 5 |
VERSION = datasets.Version("1.0.0")
|
| 6 |
+
|
| 7 |
+
DESCRIPTION = "COCO 2014 validation set subset (1000 images) with captions and object annotations"
|
| 8 |
|
| 9 |
def _info(self):
|
| 10 |
return datasets.DatasetInfo(
|
| 11 |
+
description=self.DESCRIPTION,
|
| 12 |
features=datasets.Features({
|
| 13 |
"image_id": datasets.Value("int32"),
|
| 14 |
"image": datasets.Image(),
|