DenseNet121
functionkeras_cv.models.DenseNet121(
include_rescaling,
include_top,
classes=None,
weights=None,
input_shape=(None, None, 3),
input_tensor=None,
pooling=None,
name="DenseNet121",
**kwargs
)
Instantiates the DenseNet121 architecture.
Reference
This function returns a Keras DenseNet121 model.
For transfer learning use cases, make sure to read the guide to transfer learning & fine-tuning.
Arguments
Rescaling(1/255.0)
layer.include_top
is True.None
(random initialization), a pretrained weight file
path, or a reference to pre-trained weights (e.g. 'imagenet/classification')
(see available pre-trained weights in weights.py)layers.Input()
)
to use as image input for the model.include_top
is False
.
- None
means that the output of the model will be the 4D tensor output
of the last convolutional block.
- avg
means that global average pooling will be applied to the output
of the last convolutional block, and thus the output of the model will
be a 2D tensor.
- max
means that global max pooling will be applied.Returns
A keras.Model
instance.
DenseNet169
functionkeras_cv.models.DenseNet169(
include_rescaling,
include_top,
classes=None,
weights=None,
input_shape=(None, None, 3),
input_tensor=None,
pooling=None,
name="DenseNet169",
**kwargs
)
Instantiates the DenseNet169 architecture.
Reference
This function returns a Keras DenseNet169 model.
For transfer learning use cases, make sure to read the guide to transfer learning & fine-tuning.
Arguments
Rescaling(1/255.0)
layer.include_top
is True.None
(random initialization), a pretrained weight file
path, or a reference to pre-trained weights (e.g. 'imagenet/classification')
(see available pre-trained weights in weights.py)layers.Input()
)
to use as image input for the model.include_top
is False
.
- None
means that the output of the model will be the 4D tensor output
of the last convolutional block.
- avg
means that global average pooling will be applied to the output
of the last convolutional block, and thus the output of the model will
be a 2D tensor.
- max
means that global max pooling will be applied.Returns
A keras.Model
instance.
DenseNet201
functionkeras_cv.models.DenseNet201(
include_rescaling,
include_top,
classes=None,
weights=None,
input_shape=(None, None, 3),
input_tensor=None,
pooling=None,
name="DenseNet201",
**kwargs
)
Instantiates the DenseNet201 architecture.
Reference
This function returns a Keras DenseNet201 model.
For transfer learning use cases, make sure to read the guide to transfer learning & fine-tuning.
Arguments
Rescaling(1/255.0)
layer.include_top
is True.None
(random initialization), a pretrained weight file
path, or a reference to pre-trained weights (e.g. 'imagenet/classification')
(see available pre-trained weights in weights.py)layers.Input()
)
to use as image input for the model.include_top
is False
.
- None
means that the output of the model will be the 4D tensor output
of the last convolutional block.
- avg
means that global average pooling will be applied to the output
of the last convolutional block, and thus the output of the model will
be a 2D tensor.
- max
means that global max pooling will be applied.Returns
A keras.Model
instance.