Description Usage Arguments Details
Instantiates the DenseNet architecture.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | application_densenet(
blocks,
include_top = TRUE,
weights = "imagenet",
input_tensor = NULL,
input_shape = NULL,
pooling = NULL,
classes = 1000
)
application_densenet121(
include_top = TRUE,
weights = "imagenet",
input_tensor = NULL,
input_shape = NULL,
pooling = NULL,
classes = 1000
)
application_densenet169(
include_top = TRUE,
weights = "imagenet",
input_tensor = NULL,
input_shape = NULL,
pooling = NULL,
classes = 1000
)
application_densenet201(
include_top = TRUE,
weights = "imagenet",
input_tensor = NULL,
input_shape = NULL,
pooling = NULL,
classes = 1000
)
densenet_preprocess_input(x, data_format = NULL)
|
blocks |
numbers of building blocks for the four dense layers. |
include_top |
whether to include the fully-connected layer at the top of the network. |
weights |
one of |
input_tensor |
optional Keras tensor (i.e. output of |
input_shape |
optional shape list, only to be specified if |
pooling |
optional pooling mode for feature extraction when
|
classes |
optional number of classes to classify images into, only to be
specified if |
x |
a 3D or 4D array consists of RGB values within |
data_format |
data format of the image tensor. |
Optionally loads weights pre-trained
on ImageNet. Note that when using TensorFlow,
for best performance you should set
image_data_format='channels_last'
in your Keras config
at ~/.keras/keras.json.
The model and the weights are compatible with TensorFlow, Theano, and CNTK. The data format convention used by the model is the one specified in your Keras config file.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.