Reference documentation and code samples for the Google Cloud Ai Platform V1 Client class ImageConfig.
Config for image generation features.
Generated from protobuf message google.cloud.aiplatform.v1.ImageConfig
Namespace
Google \ Cloud \ AIPlatform \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ image_output_options
↳ aspect_ratio
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"
↳ person_generation
int
Optional. Controls whether the model can generate people.
↳ image_size
string
Optional. Specifies the size of generated images. Supported values are 1K
, 2K
, 4K
. If not specified, the model will use default value 1K
.
getImageOutputOptions
Optional. The image output format for generated images.
hasImageOutputOptions
clearImageOutputOptions
setImageOutputOptions
Optional. The image output format for generated images.
$this
getAspectRatio
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"
string
hasAspectRatio
clearAspectRatio
setAspectRatio
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"
var
string
$this
getPersonGeneration
Optional. Controls whether the model can generate people.
int
hasPersonGeneration
clearPersonGeneration
setPersonGeneration
Optional. Controls whether the model can generate people.
var
int
$this
getImageSize
Optional. Specifies the size of generated images. Supported values are 1K
, 2K
, 4K
. If not specified, the model will use default value 1K
.
string
hasImageSize
clearImageSize
setImageSize
Optional. Specifies the size of generated images. Supported values are 1K
, 2K
, 4K
. If not specified, the model will use default value 1K
.
var
string
$this

