KERAS_WRAPPER$get_input_width {autovi} | R Documentation |
This function get the input image width (the input shape is (batch_size, height, width, channels)) of a keras model.
KERAS_WRAPPER$get_input_width(keras_model = self$keras_model)
keras_model |
Keras model. A trained computer vision model. |
An integer.
keras_model <- try(get_keras_model("vss_phn_32"))
if (!inherits(keras_model, "try-error")) {
keras_wrapper(keras_model)$get_input_width()
}