Description Usage Arguments See Also Examples
Resize images.
1 2 | layer_image_resize(object, size, align_corners = FALSE, method = "bilinear",
name = NULL)
|
object |
Model or layer object |
size |
integer of 2 elements: new_height, new_width. The new size for the images |
align_corners |
If TRUE, the centers of the 4 corner pixels of the input and output tensors are aligned, preserving the values at the corner pixels. Defaults to FALSE. |
method |
Could be 'nearest_neighbor', 'bicubic', 'area' or 'bilinear'. Defaults to "bilinear". |
name |
An optional name string for the layer. Should be unique in a model (do not reuse the same name twice). It will be autogenerated if it isn't provided. |
Other image: layer_image_rgb_to_grayscale
1 2 3 4 5 6 7 | ## Not run:
library(keras)
library(kextra)
images <- layer_input(c(200, 200, 3))
images_resized <- layer_image_resize(images, c(100, 100))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.