ImageDataLoaders_from_df: ImageDataLoaders from df

Description Usage Arguments Value

View source: R/image_loaders.R

Description

Create from 'df' using 'fn_col' and 'label_col'

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
ImageDataLoaders_from_df(
  df,
  path = ".",
  valid_pct = 0.2,
  seed = NULL,
  fn_col = 0,
  folder = NULL,
  suff = "",
  label_col = 1,
  label_delim = NULL,
  y_block = NULL,
  valid_col = NULL,
  item_tfms = NULL,
  batch_tfms = NULL,
  bs = 64,
  val_bs = NULL,
  shuffle_train = TRUE,
  device = NULL,
  ...
)

Arguments

df

data frame

path

The folder where to work

valid_pct

validation percentage

seed

random seed

fn_col

column name

folder

folder name

suff

suff

label_col

label column

label_delim

label separator

y_block

y_block

valid_col

validation column

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

shuffle_train

device

device

...

additional parameters to pass

Value

None


fastai documentation built on July 28, 2021, 5:06 p.m.