EditConfig for imagegeneration@006
Buffer zone, if provided, must be length 2.
editModestring
The editing mode that describes the use case for editing. The values can be one of: * inpainting-remove * inpainting-insert * outpainting * product-image
maskDilationnumber
Parameter to control mask dilation, range: [0, 1], default: 0.03.
guidanceScaleinteger
Guidance scale: this controls strength of text guidance.
productPositionstring
Product position: this controls the product position in the returned product editing image. The values can be one of: * reposition - the default behavior in the GPS pipeline * fixed - keeps the product in the same position as in the position as in the input image. This assume input image is square.
Automatic mask generation configuration.
baseStepsinteger
Number of sampling steps for base model.
backendstring
The backend to use for the model. The values can be one of: * experimental * prod
Semantic Filter Config. This config reduces object hallucination on inpainted images. Users can set filter classes and filter entities to filter out generated images that hallucinate undesired objects in the inpainted area. This config is only enabled in Editing config.
Parameters for AlternateInitConfig
Outpainting config.
| JSON representation |
|---|
{ "bufferZones": [ { object ( |
MaskMode
maskTypestring
The type of mask to generate from the provided input image. The values can be one of: * background * foreground * semantic
The class IDs to generate masks of using the Semantic Segmenter model. Only numeric class IDs are supported.
Not used if the maskType value is not semantic.
| JSON representation |
|---|
{ "maskType": string, "classes": [ value ] } |
BufferZone
BufferZone config.
pixelsinteger
The number of pixels for the mask to dilate.
diffusionTnumber
When during diffusion this pixel dilation takes effect, 1=start, 0=end.
| JSON representation |
|---|
{ "pixels": integer, "diffusionT": number } |