ImageDataLoaders_from_csv: ImageDataLoaders from csv

View source: R/image_loaders.R

ImageDataLoaders_from_csvR Documentation

ImageDataLoaders from csv

Description

Create from 'path/csv_fname' using 'fn_col' and 'label_col'

Usage

ImageDataLoaders_from_csv(
  path,
  csv_fname = "labels.csv",
  header = "infer",
  delimiter = NULL,
  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,
  size = NULL,
  shuffle_train = TRUE,
  device = NULL,
  ...
)

Arguments

path

The folder where to work

csv_fname

csv file name

header

header

delimiter

delimiter

valid_pct

validation percentage

seed

random seed

fn_col

column name

folder

folder name

suff

suff

label_col

label column

label_delim

label delimiter

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)

size

image size

shuffle_train

If we shuffle the training DataLoader or not

device

device name

...

additional parameters to pass

Value

None


fastai documentation built on June 22, 2024, 11:15 a.m.