From 2d1913773cf9f4a4f8a2c8c8f45680c3ea97f68e Mon Sep 17 00:00:00 2001 From: A Vertex SDK engineer Date: Wed, 1 May 2024 00:45:53 -0700 Subject: [PATCH] fix: LVM - Fixed the typo in the VisionModel aspect ratio type annotation PiperOrigin-RevId: 629650811 --- vertexai/vision_models/_vision_models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vertexai/vision_models/_vision_models.py b/vertexai/vision_models/_vision_models.py index 12c973acb0..daaf3356fc 100644 --- a/vertexai/vision_models/_vision_models.py +++ b/vertexai/vision_models/_vision_models.py @@ -312,7 +312,7 @@ def _generate_images( number_of_images: int = 1, width: Optional[int] = None, height: Optional[int] = None, - aspect_ratio: Optional[Literal["1:1", "9:16", "16:9", "4;3", "3:4"]] = None, + aspect_ratio: Optional[Literal["1:1", "9:16", "16:9", "4:3", "3:4"]] = None, guidance_scale: Optional[float] = None, seed: Optional[int] = None, base_image: Optional["Image"] = None, @@ -555,7 +555,7 @@ def generate_images( *, negative_prompt: Optional[str] = None, number_of_images: int = 1, - aspect_ratio: Optional[Literal["1:1", "9:16", "16:9", "4;3", "3:4"]] = None, + aspect_ratio: Optional[Literal["1:1", "9:16", "16:9", "4:3", "3:4"]] = None, guidance_scale: Optional[float] = None, language: Optional[str] = None, seed: Optional[int] = None, @@ -581,7 +581,7 @@ def generate_images( * "9:16" : 9:16 aspect ratio * "16:9" : 16:9 aspect ratio * "4:3" : 4:3 aspect ratio - * "3:4" : 3;4 aspect_ratio + * "3:4" : 3:4 aspect_ratio guidance_scale: Controls the strength of the prompt. Suggested values are: * 0-9 (low strength)