outpainting
Extend images by generating outpainting content using text prompts and masks. Define output dimensions, control generation precision, and exclude unwanted attributes for tailored visual expansions.
Instructions
Expand the image to create an outpainting.
Args:
image_path: File path of the original image
mask_image_path: File path of the mask image
prompt: Text describing the content to be generated in the outpainting area
negative_prompt: Text specifying attributes to exclude from generation
outpainting_mode: Outpainting mode (DEFAULT or PRECISE)
height: Output image height (pixels)
width: Output image width (pixels)
cfg_scale: Prompt matching degree (1-20)
Returns:
Dict: Dictionary containing the file path of the outpainted image
Input Schema
Name | Required | Description | Default |
---|---|---|---|
cfg_scale | No | ||
height | No | ||
image_path | Yes | ||
mask_image_path | Yes | ||
negative_prompt | No | ||
outpainting_mode | No | DEFAULT | |
prompt | Yes | ||
width | No |
Input Schema (JSON Schema)
{
"properties": {
"cfg_scale": {
"default": 8,
"title": "Cfg Scale",
"type": "number"
},
"height": {
"default": 512,
"title": "Height",
"type": "integer"
},
"image_path": {
"title": "Image Path",
"type": "string"
},
"mask_image_path": {
"title": "Mask Image Path",
"type": "string"
},
"negative_prompt": {
"default": "",
"title": "Negative Prompt",
"type": "string"
},
"outpainting_mode": {
"default": "DEFAULT",
"title": "Outpainting Mode",
"type": "string"
},
"prompt": {
"title": "Prompt",
"type": "string"
},
"width": {
"default": 512,
"title": "Width",
"type": "integer"
}
},
"required": [
"image_path",
"mask_image_path",
"prompt"
],
"title": "outpaintingArguments",
"type": "object"
}