Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ResNetVD presets #1897

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
141 changes: 141 additions & 0 deletions keras_hub/src/models/resnet/resnet_presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,145 @@
},
"kaggle_handle": "kaggle://kerashub/resnetv2/keras/resnet_v2_101_imagenet/3",
},
"resnet_vd_18_imagenet": {
"metadata": {
"description": (
"18-layer ResNetVD (ResNet with bag of tricks) model "
"pre-trained on the ImageNet 1k dataset at a 224x224 "
"resolution."
),
"params": 11722824,
"official_name": "ResNet",
"path": "resnet",
"model_card": "https://arxiv.org/abs/1812.01187",
},
"kaggle_handle": "kaggle://kerashub/resnetvd/keras/resnet_vd_18_imagenet",
},
"resnet_vd_34_imagenet": {
"metadata": {
"description": (
"34-layer ResNetVD (ResNet with bag of tricks) model "
"pre-trained on the ImageNet 1k dataset at a 224x224 "
"resolution."
),
"params": 21838408,
"official_name": "ResNet",
"path": "resnet",
"model_card": "https://arxiv.org/abs/1812.01187",
},
"kaggle_handle": "kaggle://kerashub/resnetvd/keras/resnet_vd_34_imagenet",
},
"resnet_vd_50_imagenet": {
"metadata": {
"description": (
"50-layer ResNetVD (ResNet with bag of tricks) model "
"pre-trained on the ImageNet 1k dataset at a 224x224 "
"resolution."
),
"params": 25629512,
"official_name": "ResNet",
"path": "resnet",
"model_card": "https://arxiv.org/abs/1812.01187",
},
"kaggle_handle": "kaggle://kerashub/resnetvd/keras/resnet_vd_50_imagenet",
},
"resnet_vd_50_ssld_imagenet": {
"metadata": {
"description": (
"50-layer ResNetVD (ResNet with bag of tricks) model "
"pre-trained on the ImageNet 1k dataset at a 224x224 "
"resolution with knowledge distillation."
),
"params": 25629512,
"official_name": "ResNet",
"path": "resnet",
"model_card": "https://arxiv.org/abs/1812.01187",
},
"kaggle_handle": "kaggle://kerashub/resnetvd/keras/resnet_vd_50_ssld_imagenet",
},
"resnet_vd_50_ssld_v2_imagenet": {
"metadata": {
"description": (
"50-layer ResNetVD (ResNet with bag of tricks) model "
"pre-trained on the ImageNet 1k dataset at a 224x224 "
"resolution with knowledge distillation and AutoAugment."
),
"params": 25629512,
"official_name": "ResNet",
"path": "resnet",
"model_card": "https://arxiv.org/abs/1812.01187",
},
"kaggle_handle": "kaggle://kerashub/resnetvd/keras/resnet_vd_50_ssld_v2_imagenet",
},
"resnet_vd_50_ssld_v2_fix_imagenet": {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is fix?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"Fix_ResNet50_vd_ssld_v2 stopped all parameter updates of ResNet50_vd_ssld_v2 except the FC layer,and fine-tuned on ImageNet1k dataset" (from https://paddleclas.readthedocs.io/en/latest/models/ResNet_and_vd_en.html)

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks!

"metadata": {
"description": (
"50-layer ResNetVD (ResNet with bag of tricks) model "
"pre-trained on the ImageNet 1k dataset at a 224x224 "
"resolution with knowledge distillation, AutoAugment and "
"additional fine-tuning of the classification head."
),
"params": 25629512,
"official_name": "ResNet",
"path": "resnet",
"model_card": "https://arxiv.org/abs/1812.01187",
},
"kaggle_handle": "kaggle://kerashub/resnetvd/keras/resnet_vd_50_ssld_v2_fix_imagenet",
},
"resnet_vd_101_imagenet": {
"metadata": {
"description": (
"101-layer ResNetVD (ResNet with bag of tricks) model "
"pre-trained on the ImageNet 1k dataset at a 224x224 "
"resolution."
),
"params": 44673864,
"official_name": "ResNet",
"path": "resnet",
"model_card": "https://arxiv.org/abs/1812.01187",
},
"kaggle_handle": "kaggle://kerashub/resnetvd/keras/resnet_vd_101_imagenet",
},
"resnet_vd_101_ssld_imagenet": {
"metadata": {
"description": (
"101-layer ResNetVD (ResNet with bag of tricks) model "
"pre-trained on the ImageNet 1k dataset at a 224x224 "
"resolution with knowledge distillation."
),
"params": 44673864,
"official_name": "ResNet",
"path": "resnet",
"model_card": "https://arxiv.org/abs/1812.01187",
},
"kaggle_handle": "kaggle://kerashub/resnetvd/keras/resnet_vd_101_ssld_imagenet",
},
"resnet_vd_152_imagenet": {
"metadata": {
"description": (
"152-layer ResNetVD (ResNet with bag of tricks) model "
"pre-trained on the ImageNet 1k dataset at a 224x224 "
"resolution."
),
"params": 60363592,
"official_name": "ResNet",
"path": "resnet",
"model_card": "https://arxiv.org/abs/1812.01187",
},
"kaggle_handle": "kaggle://kerashub/resnetvd/keras/resnet_vd_152_imagenet",
},
"resnet_vd_200_imagenet": {
"metadata": {
"description": (
"200-layer ResNetVD (ResNet with bag of tricks) model "
"pre-trained on the ImageNet 1k dataset at a 224x224 "
"resolution."
),
"params": 74933064,
"official_name": "ResNet",
"path": "resnet",
"model_card": "https://arxiv.org/abs/1812.01187",
},
"kaggle_handle": "kaggle://kerashub/resnetvd/keras/resnet_vd_200_imagenet",
},
}
Loading
Loading