自良
commited on
Commit
·
35aff73
1
Parent(s):
7d21fc9
update dataset_script.py
Browse files- dataset_infos.json +0 -38
- dataset_script.py +1 -0
dataset_infos.json
DELETED
@@ -1,38 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"IDEA-Bench": {
|
3 |
-
"description": "A benchmark dataset for professional-grade image generation evaluations.",
|
4 |
-
"citation": "@article{idea_bench2024, title={IDEA-Bench: How Far are Generative Models from Professional Designing?}, author={Chen Liang et al.}, journal={arXiv preprint}, year={2024}}",
|
5 |
-
"homepage": "https://github.com/ali-vilab/IDEA-Bench",
|
6 |
-
"license": "cc-by-nc 4.0",
|
7 |
-
"features": {
|
8 |
-
"uid": {"dtype": "string", "description": "Unique identifier for the task."},
|
9 |
-
"instruction": {"dtype": "string", "description": "Instruction prompt for the task."},
|
10 |
-
"meta": {
|
11 |
-
"task_name": {"dtype": "string", "description": "The name of the task."},
|
12 |
-
"num_of_cases": {"dtype": "int32", "description": "Number of cases in the task."},
|
13 |
-
"image_reference": {"dtype": "bool", "description": "Whether the task uses image references."},
|
14 |
-
"multi_image_reference": {"dtype": "bool", "description": "Whether the task uses multiple image references."},
|
15 |
-
"multi_image_output": {"dtype": "bool", "description": "Whether the task generates multiple images."},
|
16 |
-
"output_image_count": {"dtype": "int32", "description": "Number of expected output images."}
|
17 |
-
},
|
18 |
-
"eval": {
|
19 |
-
"questions": {
|
20 |
-
"dtype": "list",
|
21 |
-
"description": "List of evaluation questions with scoring standards."
|
22 |
-
}
|
23 |
-
},
|
24 |
-
"images": {"dtype": "list", "description": "List of associated images."},
|
25 |
-
"auto_eval": {
|
26 |
-
"dtype": "list",
|
27 |
-
"description": "Detailed prompt for MLLM evaluation, if available."
|
28 |
-
}
|
29 |
-
},
|
30 |
-
"splits": {
|
31 |
-
"text-to-image": {"description": "Text-to-Image tasks."},
|
32 |
-
"image-to-image": {"description": "Image-to-Image"},
|
33 |
-
"images-to-image": {"description": "Images-to-Image tasks."},
|
34 |
-
"text-to-images": {"description": "Text-to-Images tasks."},
|
35 |
-
"images-to-images": {"description": "Image(s)-to-Images tasks."}
|
36 |
-
}
|
37 |
-
}
|
38 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dataset_script.py
CHANGED
@@ -25,6 +25,7 @@ class MyGenerationDataset(datasets.GeneratorBasedBuilder):
|
|
25 |
]
|
26 |
|
27 |
def _generate_examples(self, data_dir):
|
|
|
28 |
for folder_name in os.listdir(data_dir):
|
29 |
folder_path = os.path.join(data_dir, folder_name)
|
30 |
if os.path.isdir(folder_path):
|
|
|
25 |
]
|
26 |
|
27 |
def _generate_examples(self, data_dir):
|
28 |
+
|
29 |
for folder_name in os.listdir(data_dir):
|
30 |
folder_path = os.path.join(data_dir, folder_name)
|
31 |
if os.path.isdir(folder_path):
|