powered by
Downloads and prepares the 450 bird species dataset found on Kaggle. The dataset description, license, etc can be found here.
bird_species_dataset(root, split = "train", download = FALSE, ...)
A torch::dataset() ready to be used with dataloaders.
torch::dataset()
path to the data location
train, test or valid
wether to download or not
other arguments passed to torchvision::image_folder_dataset().
torchvision::image_folder_dataset()
if (torch::torch_is_installed() && FALSE) { birds <- bird_species_dataset("./data", token = "path/to/kaggle.json", download = TRUE) length(birds) }
Run the code above in your browser using DataLab