ImageDataLoaders_from_path_func: ImageDataLoaders from path function

View source: R/image_loaders.R

ImageDataLoaders_from_path_funcR Documentation

ImageDataLoaders from path function

Description

Create from list of 'fnames' in 'path's with 'label_func'

Usage

ImageDataLoaders_from_path_func(
  path,
  fnames,
  label_func,
  valid_pct = 0.2,
  seed = NULL,
  item_tfms = NULL,
  batch_tfms = NULL,
  bs = 64,
  val_bs = NULL,
  shuffle_train = TRUE,
  device = NULL,
  ...
)

Arguments

path

The folder where to work

fnames

file names

label_func

label function

valid_pct

The random percentage of the dataset to set aside for validation (with an optional seed)

seed

random seed

item_tfms

One or several transforms applied to the items before batching them

batch_tfms

One or several transforms applied to the batches once they are formed

bs

batch size

val_bs

The batch size for the validation DataLoader (defaults to bs)

shuffle_train

If we shuffle the training DataLoader or not

device

device name

...

additional parameters to pass

Value

None


fastai documentation built on March 21, 2022, 9:07 a.m.