Federico Galatolo commited on
Commit
e2b666c
1 Parent(s): bd6c820

Added 'full' config

Browse files
Files changed (1) hide show
  1. TeTIm-Eval.py +21 -3
TeTIm-Eval.py CHANGED
@@ -15,7 +15,8 @@ Text To Image Evaluation (TeTIm-Eval)
15
  """
16
 
17
  _URLS = {
18
- "mini": "https://huggingface.co/datasets/galatolo/TeTIm-Eval/resolve/main/data/TeTIm-Eval-Mini.zip"
 
19
  }
20
 
21
  _CATEGORIES = [
@@ -44,6 +45,18 @@ _FOLDERS = {
44
  _CATEGORIES[7]: "TeTIm-Eval-Mini/sampled_photo_food",
45
  _CATEGORIES[8]: "TeTIm-Eval-Mini/sampled_photo_landscape",
46
  _CATEGORIES[9]: "TeTIm-Eval-Mini/sampled_photo_person",
 
 
 
 
 
 
 
 
 
 
 
 
47
  }
48
  }
49
 
@@ -57,7 +70,12 @@ class TeTIm(datasets.GeneratorBasedBuilder):
57
  TeTImConfig(
58
  name="mini",
59
  version=datasets.Version("1.0.0", ""),
60
- description="A random sampling of 300 images (30 for category) from the TeTIm dataset, manually annotated by the same person",
 
 
 
 
 
61
  ),
62
  ]
63
 
@@ -111,7 +129,7 @@ if __name__ == "__main__":
111
  from datasets import load_dataset
112
  dataset_config = {
113
  "LOADING_SCRIPT_FILES": os.path.join(os.getcwd(), "TeTIm-Eval.py"),
114
- "CONFIG_NAME": "mini",
115
  }
116
  ds = load_dataset(
117
  dataset_config["LOADING_SCRIPT_FILES"],
 
15
  """
16
 
17
  _URLS = {
18
+ "mini": "https://huggingface.co/datasets/galatolo/TeTIm-Eval/resolve/main/data/TeTIm-Eval-Mini.zip",
19
+ "full": "https://huggingface.co/datasets/galatolo/TeTIm-Eval/resolve/main/data/TeTIm-Eval.zip"
20
  }
21
 
22
  _CATEGORIES = [
 
45
  _CATEGORIES[7]: "TeTIm-Eval-Mini/sampled_photo_food",
46
  _CATEGORIES[8]: "TeTIm-Eval-Mini/sampled_photo_landscape",
47
  _CATEGORIES[9]: "TeTIm-Eval-Mini/sampled_photo_person",
48
+ },
49
+ "full": {
50
+ _CATEGORIES[0]: "TeTIm-Eval/sampled_art_digital",
51
+ _CATEGORIES[1]: "TeTIm-Eval/sampled_art_sketch",
52
+ _CATEGORIES[2]: "TeTIm-Eval/sampled_art_traditional",
53
+ _CATEGORIES[3]: "TeTIm-Eval/sampled_painting_baroque",
54
+ _CATEGORIES[4]: "TeTIm-Eval/sampled_painting_high-renaissance",
55
+ _CATEGORIES[5]: "TeTIm-Eval/sampled_painting_neoclassicism",
56
+ _CATEGORIES[6]: "TeTIm-Eval/sampled_photo_animal",
57
+ _CATEGORIES[7]: "TeTIm-Eval/sampled_photo_food",
58
+ _CATEGORIES[8]: "TeTIm-Eval/sampled_photo_landscape",
59
+ _CATEGORIES[9]: "TeTIm-Eval/sampled_photo_person",
60
  }
61
  }
62
 
 
70
  TeTImConfig(
71
  name="mini",
72
  version=datasets.Version("1.0.0", ""),
73
+ description="A random sampling of 300 text-images pairs (30 per category) from the TeTIm dataset, manually annotated by the same person",
74
+ ),
75
+ TeTImConfig(
76
+ name="full",
77
+ version=datasets.Version("1.0.0", ""),
78
+ description="2500 labelled images (250 per category) from the TeTIm dataset",
79
  ),
80
  ]
81
 
 
129
  from datasets import load_dataset
130
  dataset_config = {
131
  "LOADING_SCRIPT_FILES": os.path.join(os.getcwd(), "TeTIm-Eval.py"),
132
+ "CONFIG_NAME": "full",
133
  }
134
  ds = load_dataset(
135
  dataset_config["LOADING_SCRIPT_FILES"],