outpainting_image_generation_task
OutpaintingImageGenerationTask
Bases: BaseImageGenerationTask
A task that modifies an image outside the bounds of a mask.
Accepts a text prompt, image, and mask as input in one of the following formats: - tuple of (template string, ImageArtifact, ImageArtifact) - tuple of (TextArtifact, ImageArtifact, ImageArtifact) - Callable that returns a tuple of (TextArtifact, ImageArtifact, ImageArtifact).
Attributes:
Name | Type | Description |
---|---|---|
image_generation_engine |
OutpaintingImageGenerationEngine
|
The engine used to generate the image. |
negative_rulesets |
OutpaintingImageGenerationEngine
|
List of negatively-weighted rulesets applied to the text prompt, if supported by the driver. |
negative_rules |
OutpaintingImageGenerationEngine
|
List of negatively-weighted rules applied to the text prompt, if supported by the driver. |
output_dir |
OutpaintingImageGenerationEngine
|
If provided, the generated image will be written to disk in output_dir. |
output_file |
OutpaintingImageGenerationEngine
|
If provided, the generated image will be written to disk as output_file. |