A generic data loader for images stored in folders.
See Details for more information.
image_folder_dataset(
root,
transform = NULL,
target_transform = NULL,
loader = NULL,
is_valid_file = NULL
)Root directory path.
A function/transform that takes in an PIL image and returns
a transformed version. E.g, transform_random_crop().
A function/transform that takes in the target and transforms it.
A function to load an image given its path.
A function that takes path of an Image file and check if the file is a valid file (used to check of corrupt files)
This function assumes that the images for each class are contained
in subdirectories of root. The names of these subdirectories are stored
in the classes attribute of the returned object.
An example folder structure might look as follows:
Other classification_dataset:
caltech_dataset,
cifar10_dataset(),
eurosat_dataset(),
fer_dataset(),
fgvc_aircraft_dataset(),
flowers102_dataset(),
lfw_dataset,
mnist_dataset(),
oxfordiiitpet_dataset(),
places365_dataset(),
tiny_imagenet_dataset(),
whoi_plankton_dataset(),
whoi_small_coralnet_dataset()