upload main script
Browse files
gadme.py
CHANGED
@@ -44,10 +44,10 @@ _BIRDSET_DESCRIPTION = """\
|
|
44 |
contained dataset.
|
45 |
"""
|
46 |
|
47 |
-
base_url = "https://huggingface.co/datasets/DBD-research-group/
|
48 |
|
49 |
|
50 |
-
#base_url = "data" # set
|
51 |
|
52 |
|
53 |
class BirdSetConfig(datasets.BuilderConfig):
|
@@ -95,154 +95,168 @@ class BirdSet(datasets.GeneratorBasedBuilder):
|
|
95 |
|
96 |
BUILDER_CONFIGS = [
|
97 |
BirdSetConfig(
|
98 |
-
name="
|
99 |
description=_SAPSUCKER_WOODS_DESCRIPTION,
|
100 |
citation=_SAPSUCKER_WOODS_CITATION,
|
101 |
data_dir=f"{base_url}/SSW",
|
102 |
class_list=BIRD_NAMES_SAPSUCKER,
|
103 |
),
|
104 |
BirdSetConfig(
|
105 |
-
name="
|
106 |
description=_SAPSUCKER_WOODS_DESCRIPTION,
|
107 |
citation=_SAPSUCKER_WOODS_CITATION,
|
108 |
data_dir=f"{base_url}/SSW",
|
109 |
class_list=BIRD_NAMES_SAPSUCKER,
|
110 |
),
|
111 |
BirdSetConfig(
|
112 |
-
name="
|
113 |
description=_SAPSUCKER_WOODS_DESCRIPTION,
|
114 |
citation=_SAPSUCKER_WOODS_CITATION,
|
115 |
data_dir=f"{base_url}/SSW",
|
116 |
class_list=BIRD_NAMES_SAPSUCKER,
|
117 |
),
|
118 |
BirdSetConfig(
|
119 |
-
name="
|
120 |
description=_AMAZON_BASIN_DESCRIPTION,
|
121 |
citation=_AMAZON_BASIN_CITATION,
|
122 |
data_dir=f"{base_url}/PER",
|
123 |
class_list=BIRD_NAMES_AMAZON_BASIN,
|
124 |
),
|
125 |
BirdSetConfig(
|
126 |
-
name="
|
127 |
description=_AMAZON_BASIN_DESCRIPTION,
|
128 |
citation=_AMAZON_BASIN_CITATION,
|
129 |
data_dir=f"{base_url}/PER",
|
130 |
class_list=BIRD_NAMES_AMAZON_BASIN,
|
131 |
),
|
132 |
BirdSetConfig(
|
133 |
-
name="
|
134 |
description=_AMAZON_BASIN_DESCRIPTION,
|
135 |
citation=_AMAZON_BASIN_CITATION,
|
136 |
data_dir=f"{base_url}/PER",
|
137 |
class_list=BIRD_NAMES_AMAZON_BASIN,
|
138 |
),
|
139 |
-
BirdSetConfig(
|
140 |
-
name="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
description=_HAWAIIAN_ISLANDS_DESCRIPTION,
|
142 |
citation=_HAWAIIAN_ISLANDS_CITATION,
|
143 |
data_dir=f"{base_url}/UHH",
|
144 |
class_list=BIRD_NAMES_HAWAII,
|
145 |
),
|
146 |
BirdSetConfig(
|
147 |
-
name="
|
148 |
description=_SIERRA_NEVADA_DESCRIPTION,
|
149 |
citation=_SIERRA_NEVADA_CITATION,
|
150 |
data_dir=f"{base_url}/SNE",
|
151 |
class_list=BIRD_NAMES_SIERRA_NEVADA,
|
152 |
),
|
153 |
BirdSetConfig(
|
154 |
-
name="
|
155 |
description=_SIERRA_NEVADA_DESCRIPTION,
|
156 |
citation=_SIERRA_NEVADA_CITATION,
|
157 |
data_dir=f"{base_url}/SNE",
|
158 |
class_list=BIRD_NAMES_SIERRA_NEVADA,
|
159 |
),
|
160 |
BirdSetConfig(
|
161 |
-
name="
|
162 |
description=_SIERRA_NEVADA_DESCRIPTION,
|
163 |
citation=_SIERRA_NEVADA_CITATION,
|
164 |
data_dir=f"{base_url}/SNE",
|
165 |
class_list=BIRD_NAMES_SIERRA_NEVADA,
|
166 |
),
|
167 |
BirdSetConfig(
|
168 |
-
name="
|
169 |
description=_POWDERMILL_NATURE_DESCRIPTION,
|
170 |
citation=_POWDERMILL_NATURE_CITATION,
|
171 |
data_dir=f"{base_url}/POW",
|
172 |
class_list=BIRD_NAMES_POWDERMILL_NATURE,
|
173 |
),
|
174 |
BirdSetConfig(
|
175 |
-
name="
|
176 |
description=_POWDERMILL_NATURE_DESCRIPTION,
|
177 |
citation=_POWDERMILL_NATURE_CITATION,
|
178 |
data_dir=f"{base_url}/POW",
|
179 |
class_list=BIRD_NAMES_POWDERMILL_NATURE,
|
180 |
),
|
181 |
BirdSetConfig(
|
182 |
-
name="
|
183 |
description=_POWDERMILL_NATURE_DESCRIPTION,
|
184 |
citation=_POWDERMILL_NATURE_CITATION,
|
185 |
data_dir=f"{base_url}/POW",
|
186 |
class_list=BIRD_NAMES_POWDERMILL_NATURE,
|
187 |
),
|
188 |
BirdSetConfig(
|
189 |
-
name="
|
190 |
description=_HIGH_SIERRAS_DESCRIPTION,
|
191 |
citation=_HIGH_SIERRAS_CITATION,
|
192 |
data_dir=f"{base_url}/HSN",
|
193 |
class_list=BIRD_NAMES_HIGH_SIERRAS,
|
194 |
),
|
195 |
BirdSetConfig(
|
196 |
-
name="
|
197 |
description=_HIGH_SIERRAS_DESCRIPTION,
|
198 |
citation=_HIGH_SIERRAS_CITATION,
|
199 |
data_dir=f"{base_url}/HSN",
|
200 |
class_list=BIRD_NAMES_HIGH_SIERRAS,
|
201 |
),
|
202 |
BirdSetConfig(
|
203 |
-
name="
|
204 |
description=_HIGH_SIERRAS_DESCRIPTION,
|
205 |
citation=_HIGH_SIERRAS_CITATION,
|
206 |
data_dir=f"{base_url}/HSN",
|
207 |
class_list=BIRD_NAMES_HIGH_SIERRAS,
|
208 |
),
|
209 |
BirdSetConfig(
|
210 |
-
name="
|
211 |
description=_COLUMBIA_COSTA_RICA_DESCRIPTION,
|
212 |
citation=_COLUMBIA_COSTA_RICA_CITATION,
|
213 |
data_dir=f"{base_url}/NES",
|
214 |
class_list=BIRD_NAMES_COLUMBIA_COSTA_RICA,
|
215 |
),
|
216 |
BirdSetConfig(
|
217 |
-
name="
|
218 |
description=_COLUMBIA_COSTA_RICA_DESCRIPTION,
|
219 |
citation=_COLUMBIA_COSTA_RICA_CITATION,
|
220 |
data_dir=f"{base_url}/NES",
|
221 |
class_list=BIRD_NAMES_COLUMBIA_COSTA_RICA,
|
222 |
),
|
223 |
BirdSetConfig(
|
224 |
-
name="
|
225 |
description=_COLUMBIA_COSTA_RICA_DESCRIPTION,
|
226 |
citation=_COLUMBIA_COSTA_RICA_CITATION,
|
227 |
data_dir=f"{base_url}/NES",
|
228 |
class_list=BIRD_NAMES_COLUMBIA_COSTA_RICA,
|
229 |
),
|
230 |
BirdSetConfig(
|
231 |
-
name="
|
232 |
description=_NIPS4BPLUS_DESCRIPTION,
|
233 |
citation=_NIPS4BPLUS_CITATION,
|
234 |
data_dir=f"{base_url}/NIPS",
|
235 |
class_list=BIRD_NAMES_NIPS4BPLUS,
|
236 |
),
|
237 |
BirdSetConfig(
|
238 |
-
name="
|
239 |
description=_NIPS4BPLUS_DESCRIPTION,
|
240 |
citation=_NIPS4BPLUS_CITATION,
|
241 |
data_dir=f"{base_url}/NIPS",
|
242 |
class_list=BIRD_NAMES_NIPS4BPLUS,
|
243 |
),
|
244 |
BirdSetConfig(
|
245 |
-
name="
|
246 |
description=_NIPS4BPLUS_DESCRIPTION,
|
247 |
citation=_NIPS4BPLUS_CITATION,
|
248 |
data_dir=f"{base_url}/NIPS",
|
|
|
44 |
contained dataset.
|
45 |
"""
|
46 |
|
47 |
+
base_url = "https://huggingface.co/datasets/DBD-research-group/gadme/resolve/data"
|
48 |
|
49 |
|
50 |
+
#base_url = "data" # set a path to data folder to load localy
|
51 |
|
52 |
|
53 |
class BirdSetConfig(datasets.BuilderConfig):
|
|
|
95 |
|
96 |
BUILDER_CONFIGS = [
|
97 |
BirdSetConfig(
|
98 |
+
name="SSW",
|
99 |
description=_SAPSUCKER_WOODS_DESCRIPTION,
|
100 |
citation=_SAPSUCKER_WOODS_CITATION,
|
101 |
data_dir=f"{base_url}/SSW",
|
102 |
class_list=BIRD_NAMES_SAPSUCKER,
|
103 |
),
|
104 |
BirdSetConfig(
|
105 |
+
name="SSW_xc",
|
106 |
description=_SAPSUCKER_WOODS_DESCRIPTION,
|
107 |
citation=_SAPSUCKER_WOODS_CITATION,
|
108 |
data_dir=f"{base_url}/SSW",
|
109 |
class_list=BIRD_NAMES_SAPSUCKER,
|
110 |
),
|
111 |
BirdSetConfig(
|
112 |
+
name="SSW_scape",
|
113 |
description=_SAPSUCKER_WOODS_DESCRIPTION,
|
114 |
citation=_SAPSUCKER_WOODS_CITATION,
|
115 |
data_dir=f"{base_url}/SSW",
|
116 |
class_list=BIRD_NAMES_SAPSUCKER,
|
117 |
),
|
118 |
BirdSetConfig(
|
119 |
+
name="PER",
|
120 |
description=_AMAZON_BASIN_DESCRIPTION,
|
121 |
citation=_AMAZON_BASIN_CITATION,
|
122 |
data_dir=f"{base_url}/PER",
|
123 |
class_list=BIRD_NAMES_AMAZON_BASIN,
|
124 |
),
|
125 |
BirdSetConfig(
|
126 |
+
name="PER_xc",
|
127 |
description=_AMAZON_BASIN_DESCRIPTION,
|
128 |
citation=_AMAZON_BASIN_CITATION,
|
129 |
data_dir=f"{base_url}/PER",
|
130 |
class_list=BIRD_NAMES_AMAZON_BASIN,
|
131 |
),
|
132 |
BirdSetConfig(
|
133 |
+
name="PER_scape",
|
134 |
description=_AMAZON_BASIN_DESCRIPTION,
|
135 |
citation=_AMAZON_BASIN_CITATION,
|
136 |
data_dir=f"{base_url}/PER",
|
137 |
class_list=BIRD_NAMES_AMAZON_BASIN,
|
138 |
),
|
139 |
+
BirdSetConfig(
|
140 |
+
name="UHH",
|
141 |
+
description=_HAWAIIAN_ISLANDS_DESCRIPTION,
|
142 |
+
citation=_HAWAIIAN_ISLANDS_CITATION,
|
143 |
+
data_dir=f"{base_url}/UHH",
|
144 |
+
class_list=BIRD_NAMES_HAWAII,
|
145 |
+
),
|
146 |
+
BirdSetConfig(
|
147 |
+
name="UHH_xc",
|
148 |
+
description=_HAWAIIAN_ISLANDS_DESCRIPTION,
|
149 |
+
citation=_HAWAIIAN_ISLANDS_CITATION,
|
150 |
+
data_dir=f"{base_url}/UHH",
|
151 |
+
class_list=BIRD_NAMES_HAWAII,
|
152 |
+
),
|
153 |
+
BirdSetConfig(
|
154 |
+
name="UHH_scape",
|
155 |
description=_HAWAIIAN_ISLANDS_DESCRIPTION,
|
156 |
citation=_HAWAIIAN_ISLANDS_CITATION,
|
157 |
data_dir=f"{base_url}/UHH",
|
158 |
class_list=BIRD_NAMES_HAWAII,
|
159 |
),
|
160 |
BirdSetConfig(
|
161 |
+
name="SNE",
|
162 |
description=_SIERRA_NEVADA_DESCRIPTION,
|
163 |
citation=_SIERRA_NEVADA_CITATION,
|
164 |
data_dir=f"{base_url}/SNE",
|
165 |
class_list=BIRD_NAMES_SIERRA_NEVADA,
|
166 |
),
|
167 |
BirdSetConfig(
|
168 |
+
name="SNE_xc",
|
169 |
description=_SIERRA_NEVADA_DESCRIPTION,
|
170 |
citation=_SIERRA_NEVADA_CITATION,
|
171 |
data_dir=f"{base_url}/SNE",
|
172 |
class_list=BIRD_NAMES_SIERRA_NEVADA,
|
173 |
),
|
174 |
BirdSetConfig(
|
175 |
+
name="SNE_scape",
|
176 |
description=_SIERRA_NEVADA_DESCRIPTION,
|
177 |
citation=_SIERRA_NEVADA_CITATION,
|
178 |
data_dir=f"{base_url}/SNE",
|
179 |
class_list=BIRD_NAMES_SIERRA_NEVADA,
|
180 |
),
|
181 |
BirdSetConfig(
|
182 |
+
name="POW",
|
183 |
description=_POWDERMILL_NATURE_DESCRIPTION,
|
184 |
citation=_POWDERMILL_NATURE_CITATION,
|
185 |
data_dir=f"{base_url}/POW",
|
186 |
class_list=BIRD_NAMES_POWDERMILL_NATURE,
|
187 |
),
|
188 |
BirdSetConfig(
|
189 |
+
name="POW_xc",
|
190 |
description=_POWDERMILL_NATURE_DESCRIPTION,
|
191 |
citation=_POWDERMILL_NATURE_CITATION,
|
192 |
data_dir=f"{base_url}/POW",
|
193 |
class_list=BIRD_NAMES_POWDERMILL_NATURE,
|
194 |
),
|
195 |
BirdSetConfig(
|
196 |
+
name="POW_scape",
|
197 |
description=_POWDERMILL_NATURE_DESCRIPTION,
|
198 |
citation=_POWDERMILL_NATURE_CITATION,
|
199 |
data_dir=f"{base_url}/POW",
|
200 |
class_list=BIRD_NAMES_POWDERMILL_NATURE,
|
201 |
),
|
202 |
BirdSetConfig(
|
203 |
+
name="HSN",
|
204 |
description=_HIGH_SIERRAS_DESCRIPTION,
|
205 |
citation=_HIGH_SIERRAS_CITATION,
|
206 |
data_dir=f"{base_url}/HSN",
|
207 |
class_list=BIRD_NAMES_HIGH_SIERRAS,
|
208 |
),
|
209 |
BirdSetConfig(
|
210 |
+
name="HSN_xc",
|
211 |
description=_HIGH_SIERRAS_DESCRIPTION,
|
212 |
citation=_HIGH_SIERRAS_CITATION,
|
213 |
data_dir=f"{base_url}/HSN",
|
214 |
class_list=BIRD_NAMES_HIGH_SIERRAS,
|
215 |
),
|
216 |
BirdSetConfig(
|
217 |
+
name="HSN_scape",
|
218 |
description=_HIGH_SIERRAS_DESCRIPTION,
|
219 |
citation=_HIGH_SIERRAS_CITATION,
|
220 |
data_dir=f"{base_url}/HSN",
|
221 |
class_list=BIRD_NAMES_HIGH_SIERRAS,
|
222 |
),
|
223 |
BirdSetConfig(
|
224 |
+
name="NES",
|
225 |
description=_COLUMBIA_COSTA_RICA_DESCRIPTION,
|
226 |
citation=_COLUMBIA_COSTA_RICA_CITATION,
|
227 |
data_dir=f"{base_url}/NES",
|
228 |
class_list=BIRD_NAMES_COLUMBIA_COSTA_RICA,
|
229 |
),
|
230 |
BirdSetConfig(
|
231 |
+
name="NES_xc",
|
232 |
description=_COLUMBIA_COSTA_RICA_DESCRIPTION,
|
233 |
citation=_COLUMBIA_COSTA_RICA_CITATION,
|
234 |
data_dir=f"{base_url}/NES",
|
235 |
class_list=BIRD_NAMES_COLUMBIA_COSTA_RICA,
|
236 |
),
|
237 |
BirdSetConfig(
|
238 |
+
name="NES_scape",
|
239 |
description=_COLUMBIA_COSTA_RICA_DESCRIPTION,
|
240 |
citation=_COLUMBIA_COSTA_RICA_CITATION,
|
241 |
data_dir=f"{base_url}/NES",
|
242 |
class_list=BIRD_NAMES_COLUMBIA_COSTA_RICA,
|
243 |
),
|
244 |
BirdSetConfig(
|
245 |
+
name="NIPS",
|
246 |
description=_NIPS4BPLUS_DESCRIPTION,
|
247 |
citation=_NIPS4BPLUS_CITATION,
|
248 |
data_dir=f"{base_url}/NIPS",
|
249 |
class_list=BIRD_NAMES_NIPS4BPLUS,
|
250 |
),
|
251 |
BirdSetConfig(
|
252 |
+
name="NIPS_xc",
|
253 |
description=_NIPS4BPLUS_DESCRIPTION,
|
254 |
citation=_NIPS4BPLUS_CITATION,
|
255 |
data_dir=f"{base_url}/NIPS",
|
256 |
class_list=BIRD_NAMES_NIPS4BPLUS,
|
257 |
),
|
258 |
BirdSetConfig(
|
259 |
+
name="NIPS_scape",
|
260 |
description=_NIPS4BPLUS_DESCRIPTION,
|
261 |
citation=_NIPS4BPLUS_CITATION,
|
262 |
data_dir=f"{base_url}/NIPS",
|