df_from_imagenet_dir: Create a dataframe from a directory with the imagenet...

View source: R/images_helpers.R

df_from_imagenet_dirR Documentation

Create a dataframe from a directory with the imagenet directory structure.

Description

The imagenet directory structure is laid out as follows Top-level dirs: train, test, valid
(you should provide path to those dirs as input)
Mid-level dirs: class1, class2, ...
One directory for each class. The folders directly contain the images.

Usage

df_from_imagenet_dir(dirs)

Arguments

dirs

character
List of dirs to create dataframes from.

Value

data.frame
with columns "image" and "class" (the class).


mlr-org/mlr3keras documentation built on April 12, 2022, 11:35 a.m.