Skip to content

Commit

Permalink
feat: LVM - Release ImageGenerationModel to GA
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 658540981
  • Loading branch information
Ark-kun authored and copybara-github committed Aug 1, 2024
1 parent 71c0fd3 commit 718c199
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/unit/aiplatform/test_vision_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ def teardown_method(self):

def _get_image_generation_model(
self,
) -> preview_vision_models.ImageGenerationModel:
) -> ga_vision_models.ImageGenerationModel:
"""Gets the image generation model."""
aiplatform.init(
project=_TEST_PROJECT,
Expand All @@ -216,7 +216,7 @@ def _get_image_generation_model(
_IMAGE_GENERATION_PUBLISHER_MODEL_DICT
),
) as mock_get_publisher_model:
model = preview_vision_models.ImageGenerationModel.from_pretrained(
model = ga_vision_models.ImageGenerationModel.from_pretrained(
"imagegeneration@002"
)

Expand Down
6 changes: 6 additions & 0 deletions vertexai/vision_models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@
"""Classes for working with vision models."""

from vertexai.vision_models._vision_models import (
GeneratedImage,
Image,
ImageCaptioningModel,
ImageGenerationModel,
ImageGenerationResponse,
ImageQnAModel,
ImageTextModel,
MultiModalEmbeddingModel,
Expand All @@ -27,8 +30,11 @@
)

__all__ = [
"GeneratedImage",
"Image",
"ImageCaptioningModel",
"ImageGenerationModel",
"ImageGenerationResponse",
"ImageQnAModel",
"ImageTextModel",
"MultiModalEmbeddingModel",
Expand Down

0 comments on commit 718c199

Please sign in to comment.