ShixuanAn commited on
Commit
9872baa
1 Parent(s): 3ddc402

Update hugging_face.py

Browse files
Files changed (1) hide show
  1. hugging_face.py +0 -3
hugging_face.py CHANGED
@@ -88,7 +88,6 @@ class RDD2020_Dataset(datasets.GeneratorBasedBuilder):
88
  name=datasets.Split.TRAIN,
89
  gen_kwargs={
90
  "images_dir": os.path.join(extracted_path, "train", "images"),
91
- "annotations_dir": os.path.join(extracted_path, "train", "annotations", "xmls"),
92
  "split": "train",
93
  },
94
  ),
@@ -96,7 +95,6 @@ class RDD2020_Dataset(datasets.GeneratorBasedBuilder):
96
  name=datasets.Split.TEST,
97
  gen_kwargs={
98
  "images_dir": os.path.join(extracted_path, "test1", "images"),
99
- "annotations_dir": None, # No annotations for test1
100
  "split": "test1",
101
  },
102
  ),
@@ -104,7 +102,6 @@ class RDD2020_Dataset(datasets.GeneratorBasedBuilder):
104
  name=datasets.Split.VALIDATION,
105
  gen_kwargs={
106
  "images_dir": os.path.join(extracted_path, "test2", "images"),
107
- "annotations_dir": None, # No annotations for test2
108
  "split": "test2",
109
  },
110
  ),
 
88
  name=datasets.Split.TRAIN,
89
  gen_kwargs={
90
  "images_dir": os.path.join(extracted_path, "train", "images"),
 
91
  "split": "train",
92
  },
93
  ),
 
95
  name=datasets.Split.TEST,
96
  gen_kwargs={
97
  "images_dir": os.path.join(extracted_path, "test1", "images"),
 
98
  "split": "test1",
99
  },
100
  ),
 
102
  name=datasets.Split.VALIDATION,
103
  gen_kwargs={
104
  "images_dir": os.path.join(extracted_path, "test2", "images"),
 
105
  "split": "test2",
106
  },
107
  ),