Skip to content

Commit fd5cb02

Browse files
Ark-kuncopybara-github
authored andcommitted
feat: LVM - Released ImageQnAModel to GA
PiperOrigin-RevId: 557012696
1 parent 7575046 commit fd5cb02

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

tests/system/aiplatform/test_vision_models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ def test_image_captioning_model_get_captions(self):
5959
def test_image_q_and_a_model_ask_question(self):
6060
aiplatform.init(project=e2e_base._PROJECT, location=e2e_base._LOCATION)
6161

62-
model = vision_models.ImageQnAModel.from_pretrained("imagetext")
62+
model = ga_vision_models.ImageQnAModel.from_pretrained("imagetext")
6363
image = _create_blank_image()
6464
answers = model.ask_question(
6565
image=image,

tests/unit/aiplatform/test_vision_models.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ def test_get_captions(self):
153153
_IMAGE_TEXT_PUBLISHER_MODEL_DICT
154154
),
155155
) as mock_get_publisher_model:
156-
model = vision_models.ImageQnAModel.from_pretrained("imagetext@001")
156+
model = ga_vision_models.ImageQnAModel.from_pretrained("imagetext@001")
157157

158158
mock_get_publisher_model.assert_called_once_with(
159159
name="publishers/google/models/imagetext@001",

vertexai/vision_models/__init__.py

+2
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,11 @@
1717
from vertexai.vision_models._vision_models import (
1818
Image,
1919
ImageCaptioningModel,
20+
ImageQnAModel,
2021
)
2122

2223
__all__ = [
2324
"Image",
2425
"ImageCaptioningModel",
26+
"ImageQnAModel",
2527
]

0 commit comments

Comments
 (0)