Class ImageConfig (1.158.0)

ImageConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Attributes

Name Description
image_output_options google.cloud.aiplatform_v1.types.ImageConfig.ImageOutputOptions
Optional. The image output format for generated images. This field is a member of oneof_ _image_output_options.
aspect_ratio str
Optional. The desired aspect ratio for the generated images. The following aspect ratios are supported: "1:1" "2:3", "3:2" "3:4", "4:3" "4:5", "5:4" "9:16", "16:9" "21:9". This field is a member of oneof_ _aspect_ratio.
person_generation google.cloud.aiplatform_v1.types.ImageConfig.PersonGeneration
Optional. Controls whether the model can generate people. This field is a member of oneof_ _person_generation.
image_size str
Optional. Specifies the size of generated images. Supported values are 1K, 2K, 4K. If not specified, the model will use default value 1K. This field is a member of oneof_ _image_size.

Classes

ImageOutputOptions

ImageOutputOptions(mapping=None, *, ignore_unknown_fields=False, **kwargs)

PersonGeneration

PersonGeneration(value)

Enum for controlling the generation of people in images.

Methods

ImageConfig

ImageConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)