Skip to content

Commit

Permalink
added arg docstrings and version handles
Browse files Browse the repository at this point in the history
  • Loading branch information
pkgoogle committed Nov 12, 2024
1 parent a935e62 commit e307ba8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 5 deletions.
9 changes: 9 additions & 0 deletions keras_hub/src/models/efficientnet/efficientnet_backbone.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,13 @@ class EfficientNetBackbone(FeaturePyramidBackbone):
MBConvBlock, but instead of using a depthwise convolution and a 1x1
output convolution blocks fused blocks use a single 3x3 convolution
block.
stackwise_force_input_filters: list of ints, overrides
stackwise_input_filters if > 0. Primarily used to parameterize stem
filters (usually stackwise_input_filters[0]) differrently than stack
input filters.
stackwise_nores_option: list of bools, toggles if residiual connection
is not used. If False (default), the stack will use residual
connections, otherwise not.
min_depth: integer, minimum number of filters. Can be None and ignored
if use_depth_divisor_as_min_depth is set to True.
include_initial_padding: bool, whether to include initial zero padding
Expand All @@ -66,6 +73,8 @@ class EfficientNetBackbone(FeaturePyramidBackbone):
stem_conv_padding: str, can be 'same' or 'valid'. Padding for the stem.
batch_norm_momentum: float, momentum for the moving average calcualtion
in the batch normalization layers.
batch_norm_epsilon: float, epsilon for batch norm calcualtions. Used
in denominator for calculations to prevent divide by 0 errors.
Example:
```python
Expand Down
10 changes: 5 additions & 5 deletions keras_hub/src/models/efficientnet/efficientnet_presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"path": "efficientnet",
"model_card": "https://arxiv.org/abs/1905.11946",
},
"kaggle_handle": "kaggle://keras/efficientnet/keras/efficientnet_b0_ra_imagenet",
"kaggle_handle": "kaggle://keras/efficientnet/keras/efficientnet_b0_ra_imagenet/1",
},
"efficientnet_b1_ft_imagenet": {
"metadata": {
Expand All @@ -24,7 +24,7 @@
"path": "efficientnet",
"model_card": "https://arxiv.org/abs/1905.11946",
},
"kaggle_handle": "kaggle://keras/efficientnet/keras/efficientnet_b1_ft_imagenet",
"kaggle_handle": "kaggle://keras/efficientnet/keras/efficientnet_b1_ft_imagenet/1",
},
"efficientnet_el_ra_imagenet": {
"metadata": {
Expand All @@ -37,7 +37,7 @@
"path": "efficientnet",
"model_card": "https://arxiv.org/abs/1905.11946",
},
"kaggle_handle": "kaggle://keras/efficientnet/keras/efficientnet_b1_ft_imagenet",
"kaggle_handle": "kaggle://keras/efficientnet/keras/efficientnet_el_ra_imagenet/1",
},
"efficientnet_em_ra2_imagenet": {
"metadata": {
Expand All @@ -50,7 +50,7 @@
"path": "efficientnet",
"model_card": "https://arxiv.org/abs/1905.11946",
},
"kaggle_handle": "kaggle://keras/efficientnet/keras/efficientnet_b1_ft_imagenet",
"kaggle_handle": "kaggle://keras/efficientnet/keras/efficientnet_em_ra2_imagenet/1",
},
"efficientnet_es_ra_imagenet": {
"metadata": {
Expand All @@ -63,6 +63,6 @@
"path": "efficientnet",
"model_card": "https://arxiv.org/abs/1905.11946",
},
"kaggle_handle": "kaggle://keras/efficientnet/keras/efficientnet_b1_ft_imagenet",
"kaggle_handle": "kaggle://keras/efficientnet/keras/efficientnet_es_ra_imagenet/1",
},
}

0 comments on commit e307ba8

Please sign in to comment.