From 5e6dad5f482c0bf156c642a312150d1c2dcc0a44 Mon Sep 17 00:00:00 2001 From: Sachin Prasad Date: Thu, 17 Oct 2024 18:05:20 -0700 Subject: [PATCH 1/2] update hub apis --- scripts/hub_api_master.py | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/scripts/hub_api_master.py b/scripts/hub_api_master.py index 34e48aa33f..f2ccf62dc9 100644 --- a/scripts/hub_api_master.py +++ b/scripts/hub_api_master.py @@ -972,7 +972,7 @@ ], }, { - "path": "densnet/", + "path": "densenet/", "title": "DenseNet", "toc": True, "children": [ @@ -990,7 +990,6 @@ "generate": [ "keras_hub.models.DenseNetBackbone", "keras_hub.models.DenseNetBackbone.from_preset", - "keras_hub.models.DenseNetBackbone.token_embedding", ], }, { @@ -1033,7 +1032,6 @@ "generate": [ "keras_hub.models.SAMBackbone", "keras_hub.models.SAMBackbone.from_preset", - "keras_hub.models.SAMBackbone.token_embedding", ], }, { @@ -1132,7 +1130,6 @@ "generate": [ "keras_hub.models.DeepLabV3Backbone", "keras_hub.models.DeepLabV3Backbone.from_preset", - "keras_hub.models.DeepLabV3Backbone.token_embedding", ], }, { @@ -1156,6 +1153,29 @@ }, ], }, + { + "path": "mit/", + "title": "MixTransformer", + "toc": True, + "children": [ + { + "path": "mix_transformer_image_converter", + "title": "MixTransformer ImageConverter", + "generate": [ + "keras_hub.layers.MiTImageConverter", + "keras_hub.layers.MiTImageConverter.from_preset", + ], + }, + { + "path": "mix_transformer_backbone", + "title": "MixTransformer model", + "generate": [ + "keras_hub.models.MiTBackbone", + "keras_hub.models.MiTBackbone.from_preset", + ], + }, + ], + }, { "path": "resnet/", "title": "ResNet", @@ -1175,7 +1195,6 @@ "generate": [ "keras_hub.models.ResNetBackbone", "keras_hub.models.ResNetBackbone.from_preset", - "keras_hub.models.ResNetBackbone.token_embedding", ], }, { From 78497b72b6668ba06968a2f78e07de5ef80e3bf7 Mon Sep 17 00:00:00 2001 From: Sachin Prasad Date: Thu, 17 Oct 2024 20:31:41 -0700 Subject: [PATCH 2/2] add vgg --- scripts/hub_api_master.py | 42 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/scripts/hub_api_master.py b/scripts/hub_api_master.py index f2ccf62dc9..1a391f94e4 100644 --- a/scripts/hub_api_master.py +++ b/scripts/hub_api_master.py @@ -1280,6 +1280,48 @@ }, ], }, + { + "path": "vgg/", + "title": "VGG", + "toc": True, + "children": [ + { + "path": "vgg_image_converter", + "title": "VGGImageConverter", + "generate": [ + "keras_hub.layers.VGGImageConverter", + "keras_hub.layers.VGGImageConverter.from_preset", + ], + }, + { + "path": "vgg_backbone", + "title": "VGGBackbone model", + "generate": [ + "keras_hub.models.VGGBackbone", + "keras_hub.models.VGGBackbone.from_preset", + ], + }, + { + "path": "vgg_image_classifier", + "title": "vgg_image_classifier model", + "generate": [ + "keras_hub.models.vgg_image_classifier", + "keras_hub.models.vgg_image_classifier.from_preset", + "keras_hub.models.vgg_image_classifier.backbone", + "keras_hub.models.vgg_image_classifier.preprocessor", + ], + }, + { + "path": "vgg_image_classifier_preprocessor", + "title": "VGGImageClassifierPreprocessor layer", + "generate": [ + "keras_hub.models.VGGImageClassifierPreprocessor", + "keras_hub.models.VGGImageClassifierPreprocessor.from_preset", + "keras_hub.models.VGGImageClassifierPreprocessor.image_converter", + ], + }, + ], + }, { "path": "xlm_roberta/", "title": "XLMRoberta",