Skip to content

Commit

Permalink
Modify preset kaggle handles to full path (#2279)
Browse files Browse the repository at this point in the history
* Modify kaggle handles to full path

* Modify preset handling

* Fix formatting
  • Loading branch information
nkovela1 authored Jan 5, 2024
1 parent 10504cb commit 72d6120
Show file tree
Hide file tree
Showing 16 changed files with 91 additions and 94 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"official_name": "CSPDarkNet",
"path": "csp_darknet",
},
"kaggle_handle": "kaggle://keras/cspdarknet/csp_darknet_tiny/2",
"kaggle_handle": "kaggle://keras/cspdarknet/keras/csp_darknet_tiny/2",
},
"csp_darknet_s": {
"metadata": {
Expand All @@ -39,7 +39,7 @@
"official_name": "CSPDarkNet",
"path": "csp_darknet",
},
"kaggle_handle": "kaggle://keras/cspdarknet/csp_darknet_s/2",
"kaggle_handle": "kaggle://keras/cspdarknet/keras/csp_darknet_s/2",
},
"csp_darknet_m": {
"metadata": {
Expand All @@ -52,7 +52,7 @@
"official_name": "CSPDarkNet",
"path": "csp_darknet",
},
"kaggle_handle": "kaggle://keras/cspdarknet/csp_darknet_m/2",
"kaggle_handle": "kaggle://keras/cspdarknet/keras/csp_darknet_m/2",
},
"csp_darknet_l": {
"metadata": {
Expand All @@ -65,7 +65,7 @@
"official_name": "CSPDarkNet",
"path": "csp_darknet",
},
"kaggle_handle": "kaggle://keras/cspdarknet/csp_darknet_l/2",
"kaggle_handle": "kaggle://keras/cspdarknet/keras/csp_darknet_l/2",
},
"csp_darknet_xl": {
"metadata": {
Expand All @@ -78,7 +78,7 @@
"official_name": "CSPDarkNet",
"path": "csp_darknet",
},
"kaggle_handle": "kaggle://keras/cspdarknet/csp_darknet_xl/2",
"kaggle_handle": "kaggle://keras/cspdarknet/keras/csp_darknet_xl/2",
},
}

Expand All @@ -95,7 +95,7 @@
"official_name": "CSPDarkNet",
"path": "csp_darknet",
},
"kaggle_handle": "kaggle://keras/cspdarknet/csp_darknet_tiny_imagenet/2", # noqa: E501
"kaggle_handle": "kaggle://keras/cspdarknet/keras/csp_darknet_tiny_imagenet/2", # noqa: E501
},
"csp_darknet_l_imagenet": {
"metadata": {
Expand All @@ -109,7 +109,7 @@
"official_name": "CSPDarkNet",
"path": "csp_darknet",
},
"kaggle_handle": "kaggle://keras/cspdarknet/csp_darknet_l_imagenet/2",
"kaggle_handle": "kaggle://keras/cspdarknet/keras/csp_darknet_l_imagenet/2", # noqa: E501
},
}

Expand Down
12 changes: 6 additions & 6 deletions keras_cv/models/backbones/densenet/densenet_backbone_presets.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,19 +18,19 @@
"metadata": {
"description": "DenseNet model with 121 layers.",
},
"kaggle_handle": "kaggle://keras/densenet/densenet121/2",
"kaggle_handle": "kaggle://keras/densenet/keras/densenet121/2",
},
"densenet169": {
"metadata": {
"description": "DenseNet model with 169 layers.",
},
"kaggle_handle": "kaggle://keras/densenet/densenet169/2",
"kaggle_handle": "kaggle://keras/densenet/keras/densenet169/2",
},
"densenet201": {
"metadata": {
"description": "DenseNet model with 201 layers.",
},
"kaggle_handle": "kaggle://keras/densenet/densenet201/2",
"kaggle_handle": "kaggle://keras/densenet/keras/densenet201/2",
},
}

Expand All @@ -42,7 +42,7 @@
"classification task."
),
},
"kaggle_handle": "kaggle://keras/densenet/densenet121_imagenet/2",
"kaggle_handle": "kaggle://keras/densenet/keras/densenet121_imagenet/2",
},
"densenet169_imagenet": {
"metadata": {
Expand All @@ -51,7 +51,7 @@
"classification task."
),
},
"kaggle_handle": "kaggle://keras/densenet/densenet169_imagenet/2",
"kaggle_handle": "kaggle://keras/densenet/keras/densenet169_imagenet/2",
},
"densenet201_imagenet": {
"metadata": {
Expand All @@ -60,7 +60,7 @@
"classification task."
),
},
"kaggle_handle": "kaggle://keras/densenet/densenet201_imagenet/2",
"kaggle_handle": "kaggle://keras/densenet/keras/densenet201_imagenet/2",
},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"official_name": "EfficientNetV2",
"path": "efficientnetv2",
},
"kaggle_handle": "kaggle://keras/efficientnetv2/efficientnetv2_s/2",
"kaggle_handle": "kaggle://keras/efficientnetv2/keras/efficientnetv2_s/2", # noqa: E501
},
"efficientnetv2_m": {
"metadata": {
Expand All @@ -35,7 +35,7 @@
"official_name": "EfficientNetV2",
"path": "efficientnetv2",
},
"kaggle_handle": "kaggle://keras/efficientnetv2/efficientnetv2_m/2",
"kaggle_handle": "kaggle://keras/efficientnetv2/keras/efficientnetv2_m/2", # noqa: E501
},
"efficientnetv2_l": {
"metadata": {
Expand All @@ -47,7 +47,7 @@
"official_name": "EfficientNetV2",
"path": "efficientnetv2",
},
"kaggle_handle": "kaggle://keras/efficientnetv2/efficientnetv2_l/2",
"kaggle_handle": "kaggle://keras/efficientnetv2/keras/efficientnetv2_l/2", # noqa: E501
},
"efficientnetv2_b0": {
"metadata": {
Expand All @@ -60,7 +60,7 @@
"official_name": "EfficientNetV2",
"path": "efficientnetv2",
},
"kaggle_handle": "kaggle://keras/efficientnetv2/efficientnetv2_b0/2",
"kaggle_handle": "kaggle://keras/efficientnetv2/keras/efficientnetv2_b0/2", # noqa: E501
},
"efficientnetv2_b1": {
"metadata": {
Expand All @@ -73,7 +73,7 @@
"official_name": "EfficientNetV2",
"path": "efficientnetv2",
},
"kaggle_handle": "kaggle://keras/efficientnetv2/efficientnetv2_b1/2",
"kaggle_handle": "kaggle://keras/efficientnetv2/keras/efficientnetv2_b1/2", # noqa: E501
},
"efficientnetv2_b2": {
"metadata": {
Expand All @@ -86,7 +86,7 @@
"official_name": "EfficientNetV2",
"path": "efficientnetv2",
},
"kaggle_handle": "kaggle://keras/efficientnetv2/efficientnetv2_b2/2",
"kaggle_handle": "kaggle://keras/efficientnetv2/keras/efficientnetv2_b2/2", # noqa: E501
},
"efficientnetv2_b3": {
"metadata": {
Expand All @@ -99,7 +99,7 @@
"official_name": "EfficientNetV2",
"path": "efficientnetv2",
},
"kaggle_handle": "kaggle://keras/efficientnetv2/efficientnetv2_b3/2",
"kaggle_handle": "kaggle://keras/efficientnetv2/keras/efficientnetv2_b3/2", # noqa: E501
},
}

Expand All @@ -117,7 +117,7 @@
"official_name": "EfficientNetV2",
"path": "efficientnetv2",
},
"kaggle_handle": "kaggle://keras/efficientnetv2/efficientnetv2_s_imagenet/2", # noqa: E501
"kaggle_handle": "kaggle://keras/efficientnetv2/keras/efficientnetv2_s_imagenet/2", # noqa: E501
},
"efficientnetv2_b0_imagenet": {
"metadata": {
Expand All @@ -134,7 +134,7 @@
"official_name": "EfficientNetV2",
"path": "efficientnetv2",
},
"kaggle_handle": "kaggle://keras/efficientnetv2/efficientnetv2_b0_imagenet/2", # noqa: E501
"kaggle_handle": "kaggle://keras/efficientnetv2/keras/efficientnetv2_b0_imagenet/2", # noqa: E501
},
"efficientnetv2_b1_imagenet": {
"metadata": {
Expand All @@ -151,7 +151,7 @@
"official_name": "EfficientNetV2",
"path": "efficientnetv2",
},
"kaggle_handle": "kaggle://keras/efficientnetv2/efficientnetv2_b1_imagenet/2", # noqa: E501
"kaggle_handle": "kaggle://keras/efficientnetv2/keras/efficientnetv2_b1_imagenet/2", # noqa: E501
},
"efficientnetv2_b2_imagenet": {
"metadata": {
Expand All @@ -168,7 +168,7 @@
"official_name": "EfficientNetV2",
"path": "efficientnetv2",
},
"kaggle_handle": "kaggle://keras/efficientnetv2/efficientnetv2_b2_imagenet/2", # noqa: E501
"kaggle_handle": "kaggle://keras/efficientnetv2/keras/efficientnetv2_b2_imagenet/2", # noqa: E501
},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"official_name": "MiT",
"path": "mit",
},
"kaggle_handle": "kaggle://keras/mit/mit_b0/2",
"kaggle_handle": "kaggle://keras/mit/keras/mit_b0/2",
},
"mit_b1": {
"metadata": {
Expand All @@ -34,7 +34,7 @@
"official_name": "MiT",
"path": "mit",
},
"kaggle_handle": "kaggle://keras/mit/mit_b1/2",
"kaggle_handle": "kaggle://keras/mit/keras/mit_b1/2",
},
"mit_b2": {
"metadata": {
Expand All @@ -45,7 +45,7 @@
"official_name": "MiT",
"path": "mit",
},
"kaggle_handle": "kaggle://keras/mit/mit_b2/2",
"kaggle_handle": "kaggle://keras/mit/keras/mit_b2/2",
},
"mit_b3": {
"metadata": {
Expand All @@ -56,7 +56,7 @@
"official_name": "MiT",
"path": "mit",
},
"kaggle_handle": "kaggle://keras/mit/mit_b3/2",
"kaggle_handle": "kaggle://keras/mit/keras/mit_b3/2",
},
"mit_b4": {
"metadata": {
Expand All @@ -67,7 +67,7 @@
"official_name": "MiT",
"path": "mit",
},
"kaggle_handle": "kaggle://keras/mit/mit_b4/2",
"kaggle_handle": "kaggle://keras/mit/keras/mit_b4/2",
},
"mit_b5": {
"metadata": {
Expand All @@ -78,7 +78,7 @@
"official_name": "MiT",
"path": "mit",
},
"kaggle_handle": "kaggle://keras/mit/mit_b5/2",
"kaggle_handle": "kaggle://keras/mit/keras/mit_b5/2",
},
}

Expand All @@ -92,7 +92,7 @@
"official_name": "MiT",
"path": "mit",
},
"kaggle_handle": "kaggle://keras/mit/mit_b0_imagenet/2",
"kaggle_handle": "kaggle://keras/mit/keras/mit_b0_imagenet/2",
},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"official_name": "MobileNetV3",
"path": "mobilenetv3",
},
"kaggle_handle": "kaggle://keras/mobilenetv3/mobilenet_v3_small/2",
"kaggle_handle": "kaggle://keras/mobilenetv3/keras/mobilenet_v3_small/2", # noqa: E501
},
"mobilenet_v3_large": {
"metadata": {
Expand All @@ -38,7 +38,7 @@
"official_name": "MobileNetV3",
"path": "mobilenetv3",
},
"kaggle_handle": "kaggle://keras/mobilenetv3/mobilenet_v3_large/2",
"kaggle_handle": "kaggle://keras/mobilenetv3/keras/mobilenet_v3_large/2", # noqa: E501
},
}

Expand All @@ -55,7 +55,7 @@
"official_name": "MobileNetV3",
"path": "mobilenetv3",
},
"kaggle_handle": "kaggle://keras/mobilenetv3/mobilenet_v3_large_imagenet/2", # noqa: E501
"kaggle_handle": "kaggle://keras/mobilenetv3/keras/mobilenet_v3_large_imagenet/2", # noqa: E501
},
"mobilenet_v3_small_imagenet": {
"metadata": {
Expand All @@ -69,7 +69,7 @@
"official_name": "MobileNetV3",
"path": "mobilenetv3",
},
"kaggle_handle": "kaggle://keras/mobilenetv3/mobilenet_v3_small_imagenet/2", # noqa: E501
"kaggle_handle": "kaggle://keras/mobilenetv3/keras/mobilenet_v3_small_imagenet/2", # noqa: E501
},
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"official_name": "ResNetV1",
"path": "resnet_v1",
},
"kaggle_handle": "kaggle://keras/resnetv1/resnet18/2",
"kaggle_handle": "kaggle://keras/resnetv1/keras/resnet18/2",
},
"resnet34": {
"metadata": {
Expand All @@ -38,7 +38,7 @@
"official_name": "ResNetV1",
"path": "resnet_v1",
},
"kaggle_handle": "kaggle://keras/resnetv1/resnet34/2",
"kaggle_handle": "kaggle://keras/resnetv1/keras/resnet34/2",
},
"resnet50": {
"metadata": {
Expand All @@ -51,7 +51,7 @@
"official_name": "ResNetV1",
"path": "resnet_v1",
},
"kaggle_handle": "kaggle://keras/resnetv1/resnet50/2",
"kaggle_handle": "kaggle://keras/resnetv1/keras/resnet50/2",
},
"resnet101": {
"metadata": {
Expand All @@ -64,7 +64,7 @@
"official_name": "ResNetV1",
"path": "resnet_v1",
},
"kaggle_handle": "kaggle://keras/resnetv1/resnet101/2",
"kaggle_handle": "kaggle://keras/resnetv1/keras/resnet101/2",
},
"resnet152": {
"metadata": {
Expand All @@ -77,7 +77,7 @@
"official_name": "ResNetV1",
"path": "resnet_v1",
},
"kaggle_handle": "kaggle://keras/resnetv1/resnet152/2",
"kaggle_handle": "kaggle://keras/resnetv1/keras/resnet152/2",
},
}

Expand All @@ -94,7 +94,7 @@
"official_name": "ResNetV1",
"path": "resnet_v1",
},
"kaggle_handle": "kaggle://keras/resnetv1/resnet50_imagenet/2",
"kaggle_handle": "kaggle://keras/resnetv1/keras/resnet50_imagenet/2",
},
}

Expand Down
Loading

0 comments on commit 72d6120

Please sign in to comment.