Load image and return a tensor with an image and a corresponding label. Internal function to be called by image generator function.
imageLabel(data, classes, height = 299, width = 299, standardize = FALSE)
An image and label tensor.
a list with the first element being an image file path and the second element a label.
list of classes
the height the cropped image will be resized to.
the width the cropped image will be resized to.
standardize the image, TRUE or FALSE.