Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
leondgarse committed Aug 20, 2021
1 parent 9fd144d commit da0ba5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions keras_efficientnet_v2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
classifier_activation: A `str` or callable. The activation function to use on the "top" layer if `num_classes > 0`.
Set `classifier_activation=None` to return the logits of the "top" layer.
Default is `softmax`.
pretrained: value in [None, "imagenet", "imagenet21k", "imagenet21k-ft1k"].
pretrained: value in {pretrained}.
Will try to download and load pre-trained model weights if not None.
Save path is `~/.keras/models/efficientnetv2/`.
Expand All @@ -39,7 +39,7 @@
Args:
model_type: is the pre-defined model, value in ["t", "s", "m", "l", "b0", "b1", "b2", "b3"].
model_name: string, model name.
""" + __tail_doc__ + """
""" + __tail_doc__.format(pretrained=[None, "imagenet", "imagenet21k", "imagenet21k-ft1k"]) + """
Model architectures:
| Model | Params | 1K Top1 acc |
| ----------------- | ------ | ----------- |
Expand All @@ -56,15 +56,15 @@

EfficientNetV2B0.__doc__ = __head_doc__ + """
Args:
""" + __tail_doc__
""" + __tail_doc__.format(pretrained=[None, "imagenet", "imagenet21k", "imagenet21k-ft1k"])

EfficientNetV2B1.__doc__ = EfficientNetV2B0.__doc__
EfficientNetV2B2.__doc__ = EfficientNetV2B0.__doc__
EfficientNetV2B3.__doc__ = EfficientNetV2B0.__doc__
EfficientNetV2T.__doc__ = __head_doc__ + """Architecture and weights from [Github rwightman/pytorch-image-models](https://github.com/rwightman/pytorch-image-models#july-5-9-2021).
Args:
""" + __tail_doc__
""" + __tail_doc__.format(pretrained=[None, "imagenet"])
EfficientNetV2S.__doc__ = EfficientNetV2B0.__doc__
EfficientNetV2M.__doc__ = EfficientNetV2B0.__doc__
EfficientNetV2L.__doc__ = EfficientNetV2B0.__doc__
Expand Down

0 comments on commit da0ba5a

Please sign in to comment.