prompt_image_generation_task
PromptImageGenerationTask
Bases: BaseImageGenerationTask
Used to generate an image from a text prompt.
Accepts prompt as input in one of the following formats: - template string - TextArtifact - Callable that returns a TextArtifact.
Attributes:
Name | Type | Description |
---|---|---|
image_generation_driver |
BaseImageGenerationDriver
|
The engine used to generate the image. |
negative_rulesets |
list[Ruleset]
|
List of negatively-weighted rulesets applied to the text prompt, if supported by the driver. |
negative_rules |
list[Rule]
|
List of negatively-weighted rules applied to the text prompt, if supported by the driver. |
output_dir |
Optional[str]
|
If provided, the generated image will be written to disk in output_dir. |
output_file |
Optional[str]
|
If provided, the generated image will be written to disk as output_file. |