Prepares the dog vs cats dataset available in Kaggle here
dogs_vs_cats_dataset(
root,
split = "train",
download = FALSE,
...,
transform = NULL,
target_transform = NULL
)
path to the data location
string. 'train' or 'submission'
whether to download or not
Currently unused.
function that takes a torch tensor representing an image and return another tensor, transformed.
function that takes a scalar torch tensor and returns another tensor, transformed.
A torch::dataset()
ready to be used with dataloaders.
if (torch::torch_is_installed() && FALSE) {
dogs_cats <- dogs_vs_cats_dataset("./data", token = "path/to/kaggle.json",
download = TRUE)
length(dogs_cats)
}