imageLabel | R Documentation |
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)
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. |
An image and label tensor.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.