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