chriamue commited on
Commit
f74dbd6
1 Parent(s): 2e1cd7a

adds birds labels, bird species dataset script and test script

Browse files
Files changed (4) hide show
  1. .gitignore +1 -0
  2. bird-species-dataset.py +93 -0
  3. birds_labels.txt +525 -0
  4. test_dataloader.py +10 -0
.gitignore ADDED
@@ -0,0 +1 @@
 
 
1
+ data/
bird-species-dataset.py ADDED
@@ -0,0 +1,93 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import os
2
+ import datasets
3
+ from datasets import SplitGenerator, Split, ImageClassification
4
+ from kaggle.api.kaggle_api_extended import KaggleApi
5
+
6
+ _CITATION = """\
7
+ @TECHREPORT{gpiosenka/100-bird-species,
8
+ author = {gpiosenka},
9
+ title = {BIRDS 525 SPECIES- IMAGE CLASSIFICATION},
10
+ institution = {},
11
+ year = {2023}
12
+ }
13
+ """
14
+
15
+ _DESCRIPTION = """\
16
+ A dataset of bird species downloaded from kaggle. """
17
+
18
+ _HOMEPAGE = "https://www.kaggle.com/datasets/gpiosenka/100-bird-species/"
19
+
20
+ _DATA_DIR = 'data/'
21
+
22
+ def _CLASSES() -> list[str]:
23
+ # reads from bird_labels.txt, line by line
24
+ with open("birds_labels.txt") as f:
25
+ return f.read().splitlines()
26
+
27
+ class BirdSpeciesDatasetDataset(datasets.GeneratorBasedBuilder):
28
+ VERSION = datasets.Version("0.1.0")
29
+
30
+ BUILDER_CONFIGS = [
31
+ datasets.BuilderConfig(
32
+ name="plain_text",
33
+ version=datasets.Version("0.1.0", ""),
34
+ description="Import of BIRDS 525 SPECIES Data Set",
35
+ )
36
+ ]
37
+
38
+ def _info(self):
39
+ _NAMES = _CLASSES()
40
+
41
+ return datasets.DatasetInfo(
42
+ description=_DESCRIPTION,
43
+ features=datasets.Features(
44
+ {
45
+ "image": datasets.Image(),
46
+ "label": datasets.features.ClassLabel(names=_NAMES),
47
+ }
48
+ ),
49
+ supervised_keys=("image", "label"),
50
+ homepage=_HOMEPAGE,
51
+ citation=_CITATION,
52
+ task_templates=ImageClassification(image_column="image", label_column="label"),
53
+ )
54
+
55
+ def _split_generators(self, dl_manager):
56
+ data_dir = _DATA_DIR
57
+ # Downloading the dataset
58
+ if not os.path.exists(data_dir):
59
+ kaggle_api = KaggleApi()
60
+ kaggle_api.authenticate()
61
+ kaggle_api.dataset_download_files('gpiosenka/100-bird-species', path=data_dir, unzip=True)
62
+
63
+ # There is a bug in the dataset, where one of the folders is named "PARAKETT AUKLET" instead of "PARAKETT AUKLET"
64
+ # We fix it by adding a space to the valid folder, because train and test are wrong and also the names in the labels file
65
+ # Fixing the path
66
+ fault_path = os.path.join(data_dir, 'valid', 'PARAKETT AUKLET')
67
+ correct_path = os.path.join(data_dir, 'valid', 'PARAKETT AUKLET')
68
+ os.rename(fault_path, correct_path)
69
+
70
+ return [
71
+ SplitGenerator(name=Split.TRAIN, gen_kwargs={"filepath": os.path.join(data_dir, "train")}),
72
+ SplitGenerator(name=Split.VALIDATION, gen_kwargs={"filepath": os.path.join(data_dir, "valid")}),
73
+ SplitGenerator(name=Split.TEST, gen_kwargs={"filepath": os.path.join(data_dir, "test")}),
74
+ ]
75
+
76
+ def _generate_examples(self, filepath):
77
+ """Yields examples."""
78
+ idx = 0
79
+ for label in os.listdir(filepath):
80
+ for f in os.listdir(os.path.join(filepath, label)):
81
+ record = {
82
+ "image": os.path.join(filepath, label, f),
83
+ "label": label,
84
+ }
85
+ yield idx, record
86
+ idx += 1
87
+
88
+
89
+
90
+
91
+ # To use the dataset:
92
+ # from datasets import load_dataset
93
+ # dataset = load_dataset('path/to/birds.py')
birds_labels.txt ADDED
@@ -0,0 +1,525 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ABBOTTS BABBLER
2
+ ABBOTTS BOOBY
3
+ ABYSSINIAN GROUND HORNBILL
4
+ AFRICAN CROWNED CRANE
5
+ AFRICAN EMERALD CUCKOO
6
+ AFRICAN FIREFINCH
7
+ AFRICAN OYSTER CATCHER
8
+ AFRICAN PIED HORNBILL
9
+ AFRICAN PYGMY GOOSE
10
+ ALBATROSS
11
+ ALBERTS TOWHEE
12
+ ALEXANDRINE PARAKEET
13
+ ALPINE CHOUGH
14
+ ALTAMIRA YELLOWTHROAT
15
+ AMERICAN AVOCET
16
+ AMERICAN BITTERN
17
+ AMERICAN COOT
18
+ AMERICAN DIPPER
19
+ AMERICAN FLAMINGO
20
+ AMERICAN GOLDFINCH
21
+ AMERICAN KESTREL
22
+ AMERICAN PIPIT
23
+ AMERICAN REDSTART
24
+ AMERICAN ROBIN
25
+ AMERICAN WIGEON
26
+ AMETHYST WOODSTAR
27
+ ANDEAN GOOSE
28
+ ANDEAN LAPWING
29
+ ANDEAN SISKIN
30
+ ANHINGA
31
+ ANIANIAU
32
+ ANNAS HUMMINGBIRD
33
+ ANTBIRD
34
+ ANTILLEAN EUPHONIA
35
+ APAPANE
36
+ APOSTLEBIRD
37
+ ARARIPE MANAKIN
38
+ ASHY STORM PETREL
39
+ ASHY THRUSHBIRD
40
+ ASIAN CRESTED IBIS
41
+ ASIAN DOLLARD BIRD
42
+ ASIAN GREEN BEE EATER
43
+ ASIAN OPENBILL STORK
44
+ AUCKLAND SHAQ
45
+ AUSTRAL CANASTERO
46
+ AUSTRALASIAN FIGBIRD
47
+ AVADAVAT
48
+ AZARAS SPINETAIL
49
+ AZURE BREASTED PITTA
50
+ AZURE JAY
51
+ AZURE TANAGER
52
+ AZURE TIT
53
+ BAIKAL TEAL
54
+ BALD EAGLE
55
+ BALD IBIS
56
+ BALI STARLING
57
+ BALTIMORE ORIOLE
58
+ BANANAQUIT
59
+ BAND TAILED GUAN
60
+ BANDED BROADBILL
61
+ BANDED PITA
62
+ BANDED STILT
63
+ BAR-TAILED GODWIT
64
+ BARN OWL
65
+ BARN SWALLOW
66
+ BARRED PUFFBIRD
67
+ BARROWS GOLDENEYE
68
+ BAY-BREASTED WARBLER
69
+ BEARDED BARBET
70
+ BEARDED BELLBIRD
71
+ BEARDED REEDLING
72
+ BELTED KINGFISHER
73
+ BIRD OF PARADISE
74
+ BLACK AND YELLOW BROADBILL
75
+ BLACK BAZA
76
+ BLACK BREASTED PUFFBIRD
77
+ BLACK COCKATO
78
+ BLACK FACED SPOONBILL
79
+ BLACK FRANCOLIN
80
+ BLACK HEADED CAIQUE
81
+ BLACK NECKED STILT
82
+ BLACK SKIMMER
83
+ BLACK SWAN
84
+ BLACK TAIL CRAKE
85
+ BLACK THROATED BUSHTIT
86
+ BLACK THROATED HUET
87
+ BLACK THROATED WARBLER
88
+ BLACK VENTED SHEARWATER
89
+ BLACK VULTURE
90
+ BLACK-CAPPED CHICKADEE
91
+ BLACK-NECKED GREBE
92
+ BLACK-THROATED SPARROW
93
+ BLACKBURNIAM WARBLER
94
+ BLONDE CRESTED WOODPECKER
95
+ BLOOD PHEASANT
96
+ BLUE COAU
97
+ BLUE DACNIS
98
+ BLUE GRAY GNATCATCHER
99
+ BLUE GROSBEAK
100
+ BLUE GROUSE
101
+ BLUE HERON
102
+ BLUE MALKOHA
103
+ BLUE THROATED PIPING GUAN
104
+ BLUE THROATED TOUCANET
105
+ BOBOLINK
106
+ BORNEAN BRISTLEHEAD
107
+ BORNEAN LEAFBIRD
108
+ BORNEAN PHEASANT
109
+ BRANDT CORMARANT
110
+ BREWERS BLACKBIRD
111
+ BROWN CREPPER
112
+ BROWN HEADED COWBIRD
113
+ BROWN NOODY
114
+ BROWN THRASHER
115
+ BUFFLEHEAD
116
+ BULWERS PHEASANT
117
+ BURCHELLS COURSER
118
+ BUSH TURKEY
119
+ CAATINGA CACHOLOTE
120
+ CABOTS TRAGOPAN
121
+ CACTUS WREN
122
+ CALIFORNIA CONDOR
123
+ CALIFORNIA GULL
124
+ CALIFORNIA QUAIL
125
+ CAMPO FLICKER
126
+ CANARY
127
+ CANVASBACK
128
+ CAPE GLOSSY STARLING
129
+ CAPE LONGCLAW
130
+ CAPE MAY WARBLER
131
+ CAPE ROCK THRUSH
132
+ CAPPED HERON
133
+ CAPUCHINBIRD
134
+ CARMINE BEE-EATER
135
+ CASPIAN TERN
136
+ CASSOWARY
137
+ CEDAR WAXWING
138
+ CERULEAN WARBLER
139
+ CHARA DE COLLAR
140
+ CHATTERING LORY
141
+ CHESTNET BELLIED EUPHONIA
142
+ CHESTNUT WINGED CUCKOO
143
+ CHINESE BAMBOO PARTRIDGE
144
+ CHINESE POND HERON
145
+ CHIPPING SPARROW
146
+ CHUCAO TAPACULO
147
+ CHUKAR PARTRIDGE
148
+ CINNAMON ATTILA
149
+ CINNAMON FLYCATCHER
150
+ CINNAMON TEAL
151
+ CLARKS GREBE
152
+ CLARKS NUTCRACKER
153
+ COCK OF THE ROCK
154
+ COCKATOO
155
+ COLLARED ARACARI
156
+ COLLARED CRESCENTCHEST
157
+ COMMON FIRECREST
158
+ COMMON GRACKLE
159
+ COMMON HOUSE MARTIN
160
+ COMMON IORA
161
+ COMMON LOON
162
+ COMMON POORWILL
163
+ COMMON STARLING
164
+ COPPERSMITH BARBET
165
+ COPPERY TAILED COUCAL
166
+ CRAB PLOVER
167
+ CRANE HAWK
168
+ CREAM COLORED WOODPECKER
169
+ CRESTED AUKLET
170
+ CRESTED CARACARA
171
+ CRESTED COUA
172
+ CRESTED FIREBACK
173
+ CRESTED KINGFISHER
174
+ CRESTED NUTHATCH
175
+ CRESTED OROPENDOLA
176
+ CRESTED SERPENT EAGLE
177
+ CRESTED SHRIKETIT
178
+ CRESTED WOOD PARTRIDGE
179
+ CRIMSON CHAT
180
+ CRIMSON SUNBIRD
181
+ CROW
182
+ CUBAN TODY
183
+ CUBAN TROGON
184
+ CURL CRESTED ARACURI
185
+ D-ARNAUDS BARBET
186
+ DALMATIAN PELICAN
187
+ DARJEELING WOODPECKER
188
+ DARK EYED JUNCO
189
+ DAURIAN REDSTART
190
+ DEMOISELLE CRANE
191
+ DOUBLE BARRED FINCH
192
+ DOUBLE BRESTED CORMARANT
193
+ DOUBLE EYED FIG PARROT
194
+ DOWNY WOODPECKER
195
+ DUNLIN
196
+ DUSKY LORY
197
+ DUSKY ROBIN
198
+ EARED PITA
199
+ EASTERN BLUEBIRD
200
+ EASTERN BLUEBONNET
201
+ EASTERN GOLDEN WEAVER
202
+ EASTERN MEADOWLARK
203
+ EASTERN ROSELLA
204
+ EASTERN TOWEE
205
+ EASTERN WIP POOR WILL
206
+ EASTERN YELLOW ROBIN
207
+ ECUADORIAN HILLSTAR
208
+ EGYPTIAN GOOSE
209
+ ELEGANT TROGON
210
+ ELLIOTS PHEASANT
211
+ EMERALD TANAGER
212
+ EMPEROR PENGUIN
213
+ EMU
214
+ ENGGANO MYNA
215
+ EURASIAN BULLFINCH
216
+ EURASIAN GOLDEN ORIOLE
217
+ EURASIAN MAGPIE
218
+ EUROPEAN GOLDFINCH
219
+ EUROPEAN TURTLE DOVE
220
+ EVENING GROSBEAK
221
+ FAIRY BLUEBIRD
222
+ FAIRY PENGUIN
223
+ FAIRY TERN
224
+ FAN TAILED WIDOW
225
+ FASCIATED WREN
226
+ FIERY MINIVET
227
+ FIORDLAND PENGUIN
228
+ FIRE TAILLED MYZORNIS
229
+ FLAME BOWERBIRD
230
+ FLAME TANAGER
231
+ FOREST WAGTAIL
232
+ FRIGATE
233
+ FRILL BACK PIGEON
234
+ GAMBELS QUAIL
235
+ GANG GANG COCKATOO
236
+ GILA WOODPECKER
237
+ GILDED FLICKER
238
+ GLOSSY IBIS
239
+ GO AWAY BIRD
240
+ GOLD WING WARBLER
241
+ GOLDEN BOWER BIRD
242
+ GOLDEN CHEEKED WARBLER
243
+ GOLDEN CHLOROPHONIA
244
+ GOLDEN EAGLE
245
+ GOLDEN PARAKEET
246
+ GOLDEN PHEASANT
247
+ GOLDEN PIPIT
248
+ GOULDIAN FINCH
249
+ GRANDALA
250
+ GRAY CATBIRD
251
+ GRAY KINGBIRD
252
+ GRAY PARTRIDGE
253
+ GREAT ARGUS
254
+ GREAT GRAY OWL
255
+ GREAT JACAMAR
256
+ GREAT KISKADEE
257
+ GREAT POTOO
258
+ GREAT TINAMOU
259
+ GREAT XENOPS
260
+ GREATER PEWEE
261
+ GREATER PRAIRIE CHICKEN
262
+ GREATOR SAGE GROUSE
263
+ GREEN BROADBILL
264
+ GREEN JAY
265
+ GREEN MAGPIE
266
+ GREEN WINGED DOVE
267
+ GREY CUCKOOSHRIKE
268
+ GREY HEADED CHACHALACA
269
+ GREY HEADED FISH EAGLE
270
+ GREY PLOVER
271
+ GROVED BILLED ANI
272
+ GUINEA TURACO
273
+ GUINEAFOWL
274
+ GURNEYS PITTA
275
+ GYRFALCON
276
+ HAMERKOP
277
+ HARLEQUIN DUCK
278
+ HARLEQUIN QUAIL
279
+ HARPY EAGLE
280
+ HAWAIIAN GOOSE
281
+ HAWFINCH
282
+ HELMET VANGA
283
+ HEPATIC TANAGER
284
+ HIMALAYAN BLUETAIL
285
+ HIMALAYAN MONAL
286
+ HOATZIN
287
+ HOODED MERGANSER
288
+ HOOPOES
289
+ HORNED GUAN
290
+ HORNED LARK
291
+ HORNED SUNGEM
292
+ HOUSE FINCH
293
+ HOUSE SPARROW
294
+ HYACINTH MACAW
295
+ IBERIAN MAGPIE
296
+ IBISBILL
297
+ IMPERIAL SHAQ
298
+ INCA TERN
299
+ INDIAN BUSTARD
300
+ INDIAN PITTA
301
+ INDIAN ROLLER
302
+ INDIAN VULTURE
303
+ INDIGO BUNTING
304
+ INDIGO FLYCATCHER
305
+ INLAND DOTTEREL
306
+ IVORY BILLED ARACARI
307
+ IVORY GULL
308
+ IWI
309
+ JABIRU
310
+ JACK SNIPE
311
+ JACOBIN PIGEON
312
+ JANDAYA PARAKEET
313
+ JAPANESE ROBIN
314
+ JAVA SPARROW
315
+ JOCOTOCO ANTPITTA
316
+ KAGU
317
+ KAKAPO
318
+ KILLDEAR
319
+ KING EIDER
320
+ KING VULTURE
321
+ KIWI
322
+ KNOB BILLED DUCK
323
+ KOOKABURRA
324
+ LARK BUNTING
325
+ LAUGHING GULL
326
+ LAZULI BUNTING
327
+ LESSER ADJUTANT
328
+ LILAC ROLLER
329
+ LIMPKIN
330
+ LITTLE AUK
331
+ LOGGERHEAD SHRIKE
332
+ LONG-EARED OWL
333
+ LOONEY BIRDS
334
+ LUCIFER HUMMINGBIRD
335
+ MAGPIE GOOSE
336
+ MALABAR HORNBILL
337
+ MALACHITE KINGFISHER
338
+ MALAGASY WHITE EYE
339
+ MALEO
340
+ MALLARD DUCK
341
+ MANDRIN DUCK
342
+ MANGROVE CUCKOO
343
+ MARABOU STORK
344
+ MASKED BOBWHITE
345
+ MASKED BOOBY
346
+ MASKED LAPWING
347
+ MCKAYS BUNTING
348
+ MERLIN
349
+ MIKADO PHEASANT
350
+ MILITARY MACAW
351
+ MOURNING DOVE
352
+ MYNA
353
+ NICOBAR PIGEON
354
+ NOISY FRIARBIRD
355
+ NORTHERN BEARDLESS TYRANNULET
356
+ NORTHERN CARDINAL
357
+ NORTHERN FLICKER
358
+ NORTHERN FULMAR
359
+ NORTHERN GANNET
360
+ NORTHERN GOSHAWK
361
+ NORTHERN JACANA
362
+ NORTHERN MOCKINGBIRD
363
+ NORTHERN PARULA
364
+ NORTHERN RED BISHOP
365
+ NORTHERN SHOVELER
366
+ OCELLATED TURKEY
367
+ OILBIRD
368
+ OKINAWA RAIL
369
+ ORANGE BREASTED TROGON
370
+ ORANGE BRESTED BUNTING
371
+ ORIENTAL BAY OWL
372
+ ORNATE HAWK EAGLE
373
+ OSPREY
374
+ OSTRICH
375
+ OVENBIRD
376
+ OYSTER CATCHER
377
+ PAINTED BUNTING
378
+ PALILA
379
+ PALM NUT VULTURE
380
+ PARADISE TANAGER
381
+ PARAKETT AUKLET
382
+ PARUS MAJOR
383
+ PATAGONIAN SIERRA FINCH
384
+ PEACOCK
385
+ PEREGRINE FALCON
386
+ PHAINOPEPLA
387
+ PHILIPPINE EAGLE
388
+ PINK ROBIN
389
+ PLUSH CRESTED JAY
390
+ POMARINE JAEGER
391
+ PUFFIN
392
+ PUNA TEAL
393
+ PURPLE FINCH
394
+ PURPLE GALLINULE
395
+ PURPLE MARTIN
396
+ PURPLE SWAMPHEN
397
+ PYGMY KINGFISHER
398
+ PYRRHULOXIA
399
+ QUETZAL
400
+ RAINBOW LORIKEET
401
+ RAZORBILL
402
+ RED BEARDED BEE EATER
403
+ RED BELLIED PITTA
404
+ RED BILLED TROPICBIRD
405
+ RED BROWED FINCH
406
+ RED CROSSBILL
407
+ RED FACED CORMORANT
408
+ RED FACED WARBLER
409
+ RED FODY
410
+ RED HEADED DUCK
411
+ RED HEADED WOODPECKER
412
+ RED KNOT
413
+ RED LEGGED HONEYCREEPER
414
+ RED NAPED TROGON
415
+ RED SHOULDERED HAWK
416
+ RED TAILED HAWK
417
+ RED TAILED THRUSH
418
+ RED WINGED BLACKBIRD
419
+ RED WISKERED BULBUL
420
+ REGENT BOWERBIRD
421
+ RING-NECKED PHEASANT
422
+ ROADRUNNER
423
+ ROCK DOVE
424
+ ROSE BREASTED COCKATOO
425
+ ROSE BREASTED GROSBEAK
426
+ ROSEATE SPOONBILL
427
+ ROSY FACED LOVEBIRD
428
+ ROUGH LEG BUZZARD
429
+ ROYAL FLYCATCHER
430
+ RUBY CROWNED KINGLET
431
+ RUBY THROATED HUMMINGBIRD
432
+ RUDDY SHELDUCK
433
+ RUDY KINGFISHER
434
+ RUFOUS KINGFISHER
435
+ RUFOUS TREPE
436
+ RUFUOS MOTMOT
437
+ SAMATRAN THRUSH
438
+ SAND MARTIN
439
+ SANDHILL CRANE
440
+ SATYR TRAGOPAN
441
+ SAYS PHOEBE
442
+ SCARLET CROWNED FRUIT DOVE
443
+ SCARLET FACED LIOCICHLA
444
+ SCARLET IBIS
445
+ SCARLET MACAW
446
+ SCARLET TANAGER
447
+ SHOEBILL
448
+ SHORT BILLED DOWITCHER
449
+ SMITHS LONGSPUR
450
+ SNOW GOOSE
451
+ SNOW PARTRIDGE
452
+ SNOWY EGRET
453
+ SNOWY OWL
454
+ SNOWY PLOVER
455
+ SNOWY SHEATHBILL
456
+ SORA
457
+ SPANGLED COTINGA
458
+ SPLENDID WREN
459
+ SPOON BILED SANDPIPER
460
+ SPOTTED CATBIRD
461
+ SPOTTED WHISTLING DUCK
462
+ SQUACCO HERON
463
+ SRI LANKA BLUE MAGPIE
464
+ STEAMER DUCK
465
+ STORK BILLED KINGFISHER
466
+ STRIATED CARACARA
467
+ STRIPED OWL
468
+ STRIPPED MANAKIN
469
+ STRIPPED SWALLOW
470
+ SUNBITTERN
471
+ SUPERB STARLING
472
+ SURF SCOTER
473
+ SWINHOES PHEASANT
474
+ TAILORBIRD
475
+ TAIWAN MAGPIE
476
+ TAKAHE
477
+ TASMANIAN HEN
478
+ TAWNY FROGMOUTH
479
+ TEAL DUCK
480
+ TIT MOUSE
481
+ TOUCHAN
482
+ TOWNSENDS WARBLER
483
+ TREE SWALLOW
484
+ TRICOLORED BLACKBIRD
485
+ TROPICAL KINGBIRD
486
+ TRUMPTER SWAN
487
+ TURKEY VULTURE
488
+ TURQUOISE MOTMOT
489
+ UMBRELLA BIRD
490
+ VARIED THRUSH
491
+ VEERY
492
+ VENEZUELIAN TROUPIAL
493
+ VERDIN
494
+ VERMILION FLYCATHER
495
+ VICTORIA CROWNED PIGEON
496
+ VIOLET BACKED STARLING
497
+ VIOLET CUCKOO
498
+ VIOLET GREEN SWALLOW
499
+ VIOLET TURACO
500
+ VISAYAN HORNBILL
501
+ VULTURINE GUINEAFOWL
502
+ WALL CREAPER
503
+ WATTLED CURASSOW
504
+ WATTLED LAPWING
505
+ WHIMBREL
506
+ WHITE BREASTED WATERHEN
507
+ WHITE BROWED CRAKE
508
+ WHITE CHEEKED TURACO
509
+ WHITE CRESTED HORNBILL
510
+ WHITE EARED HUMMINGBIRD
511
+ WHITE NECKED RAVEN
512
+ WHITE TAILED TROPIC
513
+ WHITE THROATED BEE EATER
514
+ WILD TURKEY
515
+ WILLOW PTARMIGAN
516
+ WILSONS BIRD OF PARADISE
517
+ WOOD DUCK
518
+ WOOD THRUSH
519
+ WOODLAND KINGFISHER
520
+ WRENTIT
521
+ YELLOW BELLIED FLOWERPECKER
522
+ YELLOW BREASTED CHAT
523
+ YELLOW CACIQUE
524
+ YELLOW HEADED BLACKBIRD
525
+ ZEBRA DOVE
test_dataloader.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from datasets import load_dataset
2
+ import time
3
+
4
+ def main():
5
+ for split in ["train", "validation", "test"]:
6
+ data = load_dataset("bird-species-dataset.py")[split]
7
+ print(data)
8
+
9
+ if __name__=="__main__":
10
+ main()