fabricatio_comfyui.actions
Actions for ComfyUI image generation workflow.
Classes
Queue a ComfyUI workflow and wait for the generated images. |
|
Upload an image to the ComfyUI server (e.g. for img2img workflows). |
Package Contents
- class fabricatio_comfyui.actions.ComfyuiGenerateImage(/, **data: Any)
Bases:
fabricatio_core.models.action.Action,fabricatio_comfyui.capabilities.comfyui.ComfyuiQueue a ComfyUI workflow and wait for the generated images.
The
workflowfield should contain a full ComfyUI workflow graph (exported via “Save (API Format)” from the ComfyUI interface). Usedownload_dirto save images locally.- output_key: str = 'comfyui_result'
The key used to store this action’s output in the context dictionary.
- download_dir: str | pathlib.Path | None = None
If set, download output images to this directory.
- class fabricatio_comfyui.actions.ComfyuiUploadImage(/, **data: Any)
Bases:
fabricatio_core.models.action.Action,fabricatio_comfyui.capabilities.comfyui.ComfyuiUpload an image to the ComfyUI server (e.g. for img2img workflows).
- output_key: str = 'comfyui_upload_result'
The key used to store this action’s output in the context dictionary.
- image_path: str | pathlib.Path = None
Path to the image file to upload.