File tree

2 files changed

+31
-2
lines changed

2 files changed

+31
-2
lines changed
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,30 @@
7777
"MOBILE_TF_HIGH_ACCURACY_1",
7878
}
7979

80+
MODEL_GARDEN_ICN_MODEL_TYPES = {
81+
"EFFICIENTNET",
82+
"RESNET",
83+
"VIT",
84+
"COCA",
85+
}
86+
87+
MODEL_GARDEN_IOD_MODEL_TYPES = {
88+
"SPINENET",
89+
}
90+
8091
# TODO(b/177079208): Use EPCL Enums for validating Model Types
8192
# Defined by gs://google-cloud-aiplatform/schema/trainingjob/definition/automl_image_*
8293
# Format: "prediction_type": set() of model_type's
8394
#
8495
# NOTE: When adding a new prediction_type's, ensure it fits the pattern
8596
# "automl_image_{prediction_type}_*" used by the YAML schemas on GCS
8697
AUTOML_IMAGE_PREDICTION_MODEL_TYPES = {
87-
"classification": {"CLOUD", "CLOUD_1"} | MOBILE_TF_MODEL_TYPES,
98+
"classification": {"CLOUD", "CLOUD_1"}
99+
| MOBILE_TF_MODEL_TYPES
100+
| MODEL_GARDEN_ICN_MODEL_TYPES,
88101
"object_detection": {"CLOUD_1", "CLOUD_HIGH_ACCURACY_1", "CLOUD_LOW_LATENCY_1"}
89-
| MOBILE_TF_MODEL_TYPES,
102+
| MOBILE_TF_MODEL_TYPES
103+
| MODEL_GARDEN_IOD_MODEL_TYPES,
90104
}
91105

92106
AUTOML_VIDEO_PREDICTION_MODEL_TYPES = {
Original file line numberDiff line numberDiff line change
@@ -5338,6 +5338,21 @@ def __init__(
53385338
or Core ML model and used on a mobile or edge device afterwards.
53395339
Expected to have a higher latency, but should also have a higher
53405340
prediction quality than other mobile models.
5341+
"EFFICIENTNET" - A model that, available in Vertex Model Garden image
5342+
classification training with customizable hyperparameters. Best tailored
5343+
to be used within Google Cloud, and cannot be exported externally.
5344+
"RESNET" - A model that, available in Vertex Model Garden image
5345+
classification training with customizable hyperparameters. Best tailored
5346+
to be used within Google Cloud, and cannot be exported externally.
5347+
"VIT" - A model that, available in Vertex Model Garden image
5348+
classification training with customizable hyperparameters. Best tailored
5349+
to be used within Google Cloud, and cannot be exported externally.
5350+
"COCA" - A model that, available in Vertex Model Garden image
5351+
classification training with customizable hyperparameters. Best tailored
5352+
to be used within Google Cloud, and cannot be exported externally.
5353+
"SPINENET" - A model that, available in Vertex Model Garden image object
5354+
detection training with customizable hyperparameters. Best tailored
5355+
to be used within Google Cloud, and cannot be exported externally.
53415356
base_model: Optional[models.Model] = None
53425357
Optional. Only permitted for Image Classification models.
53435358
If it is specified, the new model will be trained based on the `base` model.

0 commit comments

Comments
 (0)