|
124 | 124 |
|
125 | 125 | Args:
|
126 | 126 | include_top: Whether to include the fully-connected
|
127 |
| - layer at the top of the network. Defaults to `True`. |
| 127 | + layer at the top of the network. Defaults to True. |
128 | 128 | weights: One of `None` (random initialization),
|
129 | 129 | `"imagenet"` (pre-training on ImageNet-1k), or the path to the weights
|
130 | 130 | file to be loaded. Defaults to `"imagenet"`.
|
|
135 | 135 | if `include_top` is False.
|
136 | 136 | It should have exactly 3 inputs channels.
|
137 | 137 | pooling: Optional pooling mode for feature extraction
|
138 |
| - when `include_top` is `False`. |
| 138 | + when `include_top` is `False`. Defaults to None. |
139 | 139 | - `None` means that the output of the model will be
|
140 | 140 | the 4D tensor output of the last convolutional layer.
|
141 | 141 | - `avg` means that global average pooling
|
|
144 | 144 | the output of the model will be a 2D tensor.
|
145 | 145 | - `max` means that global max pooling will
|
146 | 146 | be applied.
|
147 |
| - Defaults to `None`. |
148 | 147 | classes: Optional number of classes to classify images
|
149 | 148 | into, only to be specified if `include_top` is True, and
|
150 |
| - if no `weights` argument is specified. 1000 is how many |
151 |
| - ImageNet classes there are. Defaults to `1000`. |
| 149 | + if no `weights` argument is specified. Defaults to 1000 (number of |
| 150 | + ImageNet classes). |
152 | 151 | classifier_activation: A `str` or callable. The activation function to use
|
153 | 152 | on the "top" layer. Ignored unless `include_top=True`. Set
|
154 | 153 | `classifier_activation=None` to return the logits of the "top" layer.
|
| 154 | + Defaults to `"softmax"`. |
155 | 155 | When loading pretrained weights, `classifier_activation` can only
|
156 |
| - be `None` or `"softmax"`. Defaults to `"softmax"`. |
| 156 | + be `None` or `"softmax"`. |
157 | 157 |
|
158 | 158 | Returns:
|
159 | 159 | A `keras.Model` instance.
|
@@ -754,10 +754,10 @@ def preprocess_input(x, data_format=None):
|
754 | 754 |
|
755 | 755 | Args:
|
756 | 756 | x: A floating point `numpy.array` or a `tf.Tensor`.
|
757 |
| - data_format: Optional data format of the image tensor/array. `None` means |
758 |
| - the global setting `tf.keras.backend.image_data_format()` is used |
759 |
| - (unless you changed it, it uses "channels_last").{mode}. |
760 |
| - Defaults to `None`. |
| 757 | + data_format: Optional data format of the image tensor/array. Defaults to |
| 758 | + None, in which case the global setting |
| 759 | + `tf.keras.backend.image_data_format()` is used (unless you changed it, |
| 760 | + it defaults to "channels_last").{mode} |
761 | 761 |
|
762 | 762 | Returns:
|
763 | 763 | Unchanged `numpy.array` or `tf.Tensor`.
|
|
0 commit comments