pydn/ComfyUI-to-Python-Extension
A powerful tool that translates ComfyUI visual workflows into executable Python code.
Core Features
Quick Start
cd /path/to/ComfyUI/custom_nodes && git clone https://github.com/pydn/ComfyUI-to-Python-Extension.gitDetailed Introduction
ComfyUI-to-Python-Extension is a powerful and essential tool designed to bridge the gap between intuitive visual node-based workflows in ComfyUI and the flexibility of executable Python code. It empowers users to effortlessly transform their intricate ComfyUI graphs into runnable Python scripts, thereby unlocking new possibilities for seamless automation, advanced programmatic experimentation, and consistent, highly repeatable generation of AI art. This project offers dual functionality, supporting direct workflow export from the ComfyUI Web UI via a 'Save As Script' option, as well as command-line conversion of saved API-format workflows. By providing this capability, it significantly enhances the productivity and creative control for AI artists, researchers, and developers looking to integrate ComfyUI's power into their broader Python-based projects.