Inpainting image generation task
InpaintingImageGenerationTask
Bases: BaseImageGenerationTask
A task that modifies a select region within an image using 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 |
InpaintingImageGenerationEngine
|
The engine used to generate the image. |
negative_rulesets |
InpaintingImageGenerationEngine
|
List of negatively-weighted rulesets applied to the text prompt, if supported by the driver. |
negative_rules |
InpaintingImageGenerationEngine
|
List of negatively-weighted rules applied to the text prompt, if supported by the driver. |
output_dir |
InpaintingImageGenerationEngine
|
If provided, the generated image will be written to disk in output_dir. |
output_file |
InpaintingImageGenerationEngine
|
If provided, the generated image will be written to disk as output_file. |