Skip to content

Commit 718c199

Browse files
Ark-kuncopybara-github
authored andcommitted
feat: LVM - Release ImageGenerationModel to GA
PiperOrigin-RevId: 658540981
1 parent 71c0fd3 commit 718c199

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

tests/unit/aiplatform/test_vision_models.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def teardown_method(self):
203203

204204
def _get_image_generation_model(
205205
self,
206-
) -> preview_vision_models.ImageGenerationModel:
206+
) -> ga_vision_models.ImageGenerationModel:
207207
"""Gets the image generation model."""
208208
aiplatform.init(
209209
project=_TEST_PROJECT,
@@ -216,7 +216,7 @@ def _get_image_generation_model(
216216
_IMAGE_GENERATION_PUBLISHER_MODEL_DICT
217217
),
218218
) as mock_get_publisher_model:
219-
model = preview_vision_models.ImageGenerationModel.from_pretrained(
219+
model = ga_vision_models.ImageGenerationModel.from_pretrained(
220220
"imagegeneration@002"
221221
)
222222

vertexai/vision_models/__init__.py

+6
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,11 @@
1515
"""Classes for working with vision models."""
1616

1717
from vertexai.vision_models._vision_models import (
18+
GeneratedImage,
1819
Image,
1920
ImageCaptioningModel,
21+
ImageGenerationModel,
22+
ImageGenerationResponse,
2023
ImageQnAModel,
2124
ImageTextModel,
2225
MultiModalEmbeddingModel,
@@ -27,8 +30,11 @@
2730
)
2831

2932
__all__ = [
33+
"GeneratedImage",
3034
"Image",
3135
"ImageCaptioningModel",
36+
"ImageGenerationModel",
37+
"ImageGenerationResponse",
3238
"ImageQnAModel",
3339
"ImageTextModel",
3440
"MultiModalEmbeddingModel",

0 commit comments

Comments
 (0)