ShixuanAn commited on
Commit
51179cf
1 Parent(s): 9872baa

Update hugging_face.py

Browse files
Files changed (1) hide show
  1. hugging_face.py +3 -3
hugging_face.py CHANGED
@@ -92,14 +92,14 @@ class RDD2020_Dataset(datasets.GeneratorBasedBuilder):
92
  },
93
  ),
94
  datasets.SplitGenerator(
95
- name=datasets.Split.TEST,
96
  gen_kwargs={
97
  "images_dir": os.path.join(extracted_path, "test1", "images"),
98
  "split": "test1",
99
  },
100
  ),
101
  datasets.SplitGenerator(
102
- name=datasets.Split.VALIDATION,
103
  gen_kwargs={
104
  "images_dir": os.path.join(extracted_path, "test2", "images"),
105
  "split": "test2",
@@ -107,7 +107,7 @@ class RDD2020_Dataset(datasets.GeneratorBasedBuilder):
107
  ),
108
  ]
109
 
110
- def _generate_examples(self, extracted_path, annotations_dir, split):
111
 
112
  # Iterate over each country directory
113
  for country_dir in ['Czech', 'India', 'Japan']:
 
92
  },
93
  ),
94
  datasets.SplitGenerator(
95
+ name=datasets.Split.TEST1,
96
  gen_kwargs={
97
  "images_dir": os.path.join(extracted_path, "test1", "images"),
98
  "split": "test1",
99
  },
100
  ),
101
  datasets.SplitGenerator(
102
+ name=datasets.Split.TEST2,
103
  gen_kwargs={
104
  "images_dir": os.path.join(extracted_path, "test2", "images"),
105
  "split": "test2",
 
107
  ),
108
  ]
109
 
110
+ def _generate_examples(self, extracted_path, split):
111
 
112
  # Iterate over each country directory
113
  for country_dir in ['Czech', 'India', 'Japan']: