From fd1d5a1b098d38236e47f00c36cbd3d8dfb9ec92 Mon Sep 17 00:00:00 2001 From: Joey <46200959+joehiggi1758@users.noreply.github.com> Date: Fri, 6 Sep 2024 14:20:31 +0000 Subject: [PATCH] [#20144] updated documentation for DenseNet, Xception, and ResNet to reflect 1000 as default classes value --- keras/src/applications/densenet.py | 2 +- keras/src/applications/resnet.py | 2 +- keras/src/applications/xception.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/keras/src/applications/densenet.py b/keras/src/applications/densenet.py index 5e0247715053..886b6bc16bd6 100644 --- a/keras/src/applications/densenet.py +++ b/keras/src/applications/densenet.py @@ -170,7 +170,7 @@ def DenseNet( be applied. classes: optional number of classes to classify images into, only to be specified if `include_top` is `True`, and - if no `weights` argument is specified. + if no `weights` argument is specified. Defaults to `1000`. classifier_activation: A `str` or callable. The activation function to use on the "top" layer. Ignored unless `include_top=True`. Set diff --git a/keras/src/applications/resnet.py b/keras/src/applications/resnet.py index 5e735a9ee1b7..0948f8901db1 100644 --- a/keras/src/applications/resnet.py +++ b/keras/src/applications/resnet.py @@ -574,7 +574,7 @@ def decode_predictions(preds, top=5): - `max` means that global max pooling will be applied. classes: optional number of classes to classify images into, only to be specified if `include_top` is `True`, and if no `weights` argument is - specified. + specified. Defaults to `1000`. classifier_activation: A `str` or callable. The activation function to use on the "top" layer. Ignored unless `include_top=True`. Set `classifier_activation=None` to return the logits of the "top" layer. diff --git a/keras/src/applications/xception.py b/keras/src/applications/xception.py index 48eda59f4fcf..2464d45ae2a2 100644 --- a/keras/src/applications/xception.py +++ b/keras/src/applications/xception.py @@ -81,7 +81,7 @@ def Xception( be applied. classes: optional number of classes to classify images into, only to be specified if `include_top` is `True`, and - if no `weights` argument is specified. + if no `weights` argument is specified. Defaults to `1000`. classifier_activation: A `str` or callable. The activation function to use on the "top" layer. Ignored unless `include_top=True`. Set `classifier_activation=None` to return the logits of the "top"