Vertex AI V1 API - Class Google::Cloud::AIPlatform::V1::ImageConfig (v1.35.0)

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

#image_output_options=

def image_output_options=(value) -> ::Google::Cloud::AIPlatform::V1::ImageConfig::ImageOutputOptions
Parameter
Returns

#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 value 1K.

#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 value 1K.
Returns
  • (::String) — Optional. Specifies the size of generated images. Supported values are 1K, 2K, 4K. If not specified, the model will use default value 1K.

#person_generation

def person_generation() -> ::Google::Cloud::AIPlatform::V1::ImageConfig::PersonGeneration
Returns

#person_generation=

def person_generation=(value) -> ::Google::Cloud::AIPlatform::V1::ImageConfig::PersonGeneration
Parameter
Returns