以自定义节点形式工作的 ComfyUI-to-Python-Extension 版本:UI 增加按钮把当前工作流保存为 Python 文件,另有转换工作流的 CLI 与更好的自定义节点支持。
https://github.com/atmaranto/ComfyUI-SaveAsScript
git clone https://github.com/atmaranto/ComfyUI-SaveAsScript
comfy node install ComfyUI-SaveAsScript