File tree 2 files changed +8
-2
lines changed
2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ def teardown_method(self):
203
203
204
204
def _get_image_generation_model (
205
205
self ,
206
- ) -> preview_vision_models .ImageGenerationModel :
206
+ ) -> ga_vision_models .ImageGenerationModel :
207
207
"""Gets the image generation model."""
208
208
aiplatform .init (
209
209
project = _TEST_PROJECT ,
@@ -216,7 +216,7 @@ def _get_image_generation_model(
216
216
_IMAGE_GENERATION_PUBLISHER_MODEL_DICT
217
217
),
218
218
) as mock_get_publisher_model :
219
- model = preview_vision_models .ImageGenerationModel .from_pretrained (
219
+ model = ga_vision_models .ImageGenerationModel .from_pretrained (
220
220
"imagegeneration@002"
221
221
)
222
222
Original file line number Diff line number Diff line change 15
15
"""Classes for working with vision models."""
16
16
17
17
from vertexai .vision_models ._vision_models import (
18
+ GeneratedImage ,
18
19
Image ,
19
20
ImageCaptioningModel ,
21
+ ImageGenerationModel ,
22
+ ImageGenerationResponse ,
20
23
ImageQnAModel ,
21
24
ImageTextModel ,
22
25
MultiModalEmbeddingModel ,
27
30
)
28
31
29
32
__all__ = [
33
+ "GeneratedImage" ,
30
34
"Image" ,
31
35
"ImageCaptioningModel" ,
36
+ "ImageGenerationModel" ,
37
+ "ImageGenerationResponse" ,
32
38
"ImageQnAModel" ,
33
39
"ImageTextModel" ,
34
40
"MultiModalEmbeddingModel" ,
You can’t perform that action at this time.
0 commit comments