Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::ImageConfig.
Config for image generation features.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#aspect_ratio
def aspect_ratio() -> ::String
Returns
-
(::String) — 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"
#aspect_ratio=
def aspect_ratio=(value) -> ::String
Parameter
-
value (::String) — 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"
Returns
-
(::String) — 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"
#image_output_options
def image_output_options() -> ::Google::Cloud::AIPlatform::V1::ImageConfig::ImageOutputOptions
Returns
- (::Google::Cloud::AIPlatform::V1::ImageConfig::ImageOutputOptions) — Optional. The image output format for generated images.
#image_output_options=
def image_output_options=(value) -> ::Google::Cloud::AIPlatform::V1::ImageConfig::ImageOutputOptions
Parameter
- value (::Google::Cloud::AIPlatform::V1::ImageConfig::ImageOutputOptions) — Optional. The image output format for generated images.
Returns
- (::Google::Cloud::AIPlatform::V1::ImageConfig::ImageOutputOptions) — Optional. The image output format for generated images.
#image_size
def image_size() -> ::String
Returns
-
(::String) — Optional. Specifies the size of generated images. Supported values are
1K,2K,4K. If not specified, the model will use default value1K.
#image_size=
def image_size=(value) -> ::String
Parameter
-
value (::String) — Optional. Specifies the size of generated images. Supported values are
1K,2K,4K. If not specified, the model will use default value1K.
Returns
-
(::String) — Optional. Specifies the size of generated images. Supported values are
1K,2K,4K. If not specified, the model will use default value1K.
#person_generation
def person_generation() -> ::Google::Cloud::AIPlatform::V1::ImageConfig::PersonGeneration
Returns
- (::Google::Cloud::AIPlatform::V1::ImageConfig::PersonGeneration) — Optional. Controls whether the model can generate people.
#person_generation=
def person_generation=(value) -> ::Google::Cloud::AIPlatform::V1::ImageConfig::PersonGeneration
Parameter
- value (::Google::Cloud::AIPlatform::V1::ImageConfig::PersonGeneration) — Optional. Controls whether the model can generate people.
Returns
- (::Google::Cloud::AIPlatform::V1::ImageConfig::PersonGeneration) — Optional. Controls whether the model can generate people.