Datasets:
Tasks:
Image Classification
Sub-tasks:
multi-class-image-classification
Languages:
English
Size:
1K<n<10K
Tags:
biology
License:
fix tipo in dataset
Browse filesFiles changed (2)
- README.md+12-11
- bird-species-dataset.py+13-10
12345536 unmodified lines542543544545546547548549550551552553554555556557558559---dataset_info:features:- name: imagedtype: image536 unmodified lines- name: testnum_bytes: 123269num_examples: 2625download_size: 0dataset_size: 4474183language:- enlicense: cc0-1.0size_categories:- 1K<n<10Ktask_categories:- image-classificationpretty_name: Bird Speciestags:- biology---# Dataset Card for "Bird Species"12345678910111213141516536 unmodified lines553554555556557558559560---language:- enlicense: cc0-1.0size_categories:- 1K<n<10Ktask_categories:- image-classificationpretty_name: Bird Speciestags:- biologydataset_info:config_name: bird_species_datasetfeatures:- name: imagedtype: image536 unmodified lines- name: testnum_bytes: 123269num_examples: 2625download_size: 4474183dataset_size: 4474183---# Dataset Card for "Bird Species"
123456711 unmodified lines1920212223242526272829303116 unmodified lines48495051525322 unmodified lines76777879808182838485import osimport datasetsfrom datasets import SplitGenerator, Split, ImageClassificationfrom kaggle.api.kaggle_api_extended import KaggleApi_CITATION = """\@TECHREPORT{gpiosenka/100-bird-species,11 unmodified lines_DATA_DIR = 'data/'def _CLASSES() -> list[str]:# reads from bird_labels.txt, line by linewith open("birds_labels.txt") as f:return f.read().splitlines()class BirdSpeciesDatasetDataset(datasets.GeneratorBasedBuilder):VERSION = datasets.Version("0.1.1")def _info(self):_NAMES = _CLASSES()16 unmodified linesdata_dir = _DATA_DIR# Downloading the datasetif not os.path.exists(data_dir):kaggle_api = KaggleApi()kaggle_api.authenticate()kaggle_api.dataset_download_files('gpiosenka/100-bird-species', path=data_dir, unzip=True)22 unmodified lines}yield idx, recordidx += 1# To use the dataset:# from datasets import load_dataset# dataset = load_dataset('path/to/birds.py')12345611 unmodified lines181920212223242526272829303132333435363738394016 unmodified lines5758596061626322 unmodified lines868788import osimport datasetsfrom datasets import SplitGenerator, Split, ImageClassification_CITATION = """\@TECHREPORT{gpiosenka/100-bird-species,11 unmodified lines_DATA_DIR = 'data/'_VERSION = "0.1.0"def _CLASSES() -> list[str]:# reads from bird_labels.txt, line by linewith open("birds_labels.txt") as f:return f.read().splitlines()class BirdSpeciesDataset(datasets.GeneratorBasedBuilder):"""DatasetBuilder for bird_species_dataset dataset."""BUILDER_CONFIGS = [datasets.BuilderConfig(name="bird_species_dataset",version=datasets.Version(_VERSION),description=_DESCRIPTION,)]def _info(self):_NAMES = _CLASSES()16 unmodified linesdata_dir = _DATA_DIR# Downloading the datasetif not os.path.exists(data_dir):from kaggle.api.kaggle_api_extended import KaggleApikaggle_api = KaggleApi()kaggle_api.authenticate()kaggle_api.dataset_download_files('gpiosenka/100-bird-species', path=data_dir, unzip=True)22 unmodified lines}yield idx, recordidx += 1
README.md+12-11
bird-species-dataset.py+13-10