get_dls: Get dls

Description Usage Arguments Details Value

View source: R/cycleGAN_models.R

Description

Given image files from two domains ('pathA', 'pathB'), create 'DataLoaders' object.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
get_dls(
  pathA,
  pathB,
  num_A = NULL,
  num_B = NULL,
  load_size = 512,
  crop_size = 256,
  bs = 4,
  num_workers = 2
)

Arguments

pathA

path A (from domain)

pathB

path B (to domain)

num_A

subset of A data

num_B

subset of B data

load_size

load size

crop_size

crop size

bs

bathc size

num_workers

number of workers

Details

Loading and randomly cropped sizes of 'load_size' and 'crop_size' are set to defaults of 512 and 256. Batch size is specified by 'bs' (default=4).

Value

None


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