CLI tool for ComfyUI workflow translation to Python code
Top 23.1% on sourcepulse
This tool translates ComfyUI workflows into executable Python scripts, enabling programmatic control and batch generation for AI image creation. It targets developers and researchers seeking to automate or integrate ComfyUI pipelines into larger applications, offering a bridge between visual node-based design and Pythonic execution.
How It Works
The extension intercepts ComfyUI workflows saved in API format (JSON). It then parses these workflows, mapping each node to its corresponding Python function and dependencies. The generated Python script imports necessary ComfyUI nodes and executes them sequentially, mirroring the visual workflow's logic and data flow. This approach allows for direct execution of complex generation pipelines without requiring the ComfyUI GUI to be running.
Quick Start & Requirements
ComfyUI/custom_nodes
directory.pip install -r requirements.txt
.Highlighted Details
queue_size
.Maintenance & Community
The project is actively maintained, with recent updates addressing compatibility with ComfyUI changes and support for custom nodes. Community support channels are not explicitly mentioned, but issues can be submitted via GitHub.
Licensing & Compatibility
The repository lists a LICENSE file, implying a standard open-source license. Specific license details and commercial use restrictions are not detailed in the README.
Limitations & Caveats
The script's functionality is dependent on the correct implementation and compatibility of individual ComfyUI nodes, especially custom ones. If a node works in the GUI but not in the generated script, it may require debugging or a specific issue submission.
6 days ago
1 week