Skip to content

Commit 581939b

Browse files
vertex-sdk-botcopybara-github
authored andcommitted
feat: Add the recently added new model type "cloud_1" to the "AutoMLImageTrainingJob" in SDK.
PiperOrigin-RevId: 512114110
1 parent 04ebc01 commit 581939b

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

google/cloud/aiplatform/constants/base.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@
8181
# NOTE: When adding a new prediction_type's, ensure it fits the pattern
8282
# "automl_image_{prediction_type}_*" used by the YAML schemas on GCS
8383
AUTOML_IMAGE_PREDICTION_MODEL_TYPES = {
84-
"classification": {"CLOUD"} | MOBILE_TF_MODEL_TYPES,
85-
"object_detection": {"CLOUD_HIGH_ACCURACY_1", "CLOUD_LOW_LATENCY_1"}
84+
"classification": {"CLOUD", "CLOUD_1"} | MOBILE_TF_MODEL_TYPES,
85+
"object_detection": {"CLOUD_1", "CLOUD_HIGH_ACCURACY_1", "CLOUD_LOW_LATENCY_1"}
8686
| MOBILE_TF_MODEL_TYPES,
8787
}
8888

google/cloud/aiplatform/training_jobs.py

+3
Original file line numberDiff line numberDiff line change
@@ -5276,6 +5276,9 @@ def __init__(
52765276
"CLOUD" - Default for Image Classification.
52775277
A Model best tailored to be used within Google Cloud, and
52785278
which cannot be exported.
5279+
"CLOUD_1" - A model type best tailored to be used within Google Cloud,
5280+
which cannot be exported externally. Compared to the CLOUD model
5281+
above, it is expected to have higher prediction accuracy.
52795282
"CLOUD_HIGH_ACCURACY_1" - Default for Image Object Detection.
52805283
A model best tailored to be used within Google Cloud, and
52815284
which cannot be exported. Expected to have a higher latency,

0 commit comments

Comments
 (0)