Create from the name attrs of `fnames` in `path`s with re expression `pat`
ImageDataLoaders_from_name_re(
path,
fnames,
pat,
bs = 64,
val_bs = NULL,
shuffle_train = TRUE,
device = NULL,
item_tfms = NULL,
batch_tfms = NULL,
...
)
The folder where to work
folder names
an argument that requires regex
The batch size
The batch size for the validation DataLoader (defaults to bs)
If we shuffle the training DataLoader or not
device name
One or several transforms applied to the items before batching them
One or several transforms applied to the batches once they are formed
additional parameters to pass
None
if (FALSE) {
URLs_PETS()
path = 'oxford-iiit-pet'
dls = ImageDataLoaders_from_name_re(
path, fnames, pat='(.+)_\\d+.jpg$',
item_tfms = RandomResizedCrop(460, min_scale=0.75), bs = 10,
batch_tfms = list(aug_transforms(size = 299, max_warp = 0),
Normalize_from_stats( imagenet_stats() )
),
device = 'cuda'
)
}