imageLabel {animl} | R Documentation |
Load image and return a tensor with an image and a corresponding label.
Description
Load image and return a tensor with an image and a corresponding label. Internal function to be called by image generator function.
Usage
imageLabel(data, classes, height = 299, width = 299, standardize = FALSE)
Arguments
data |
a list with the first element being an image file path and the second element a label. |
classes |
list of classes |
height |
the height the cropped image will be resized to. |
width |
the width the cropped image will be resized to. |
standardize |
standardize the image, TRUE or FALSE. |
Value
An image and label tensor.
[Package animl version 1.1.0 Index]