ComfyUI_to_webui
Encapsulate the comfyui workflow as a gradio webui
Nodes (20)
Generate Code128 barcodes as images, right inside your workflow
A fixed seed value that also hands you the author's repo link
The no-fuss ComfyUI chatbot
The 'Mind Map' node that is not meant to run — don't wire it in
The upload box that lets your friends feed images into your ComfyUI workflow
The negative prompt box for your packaged ComfyUI workflow
The positive-prompt box in your packaged ComfyUI workflow
A checkpoint loader that lets your webui users switch models
A float input that becomes a slider in your packaged webui
The node that saves the workflow your Gradio frontend runs
The width/height control that keeps your packaged workflow from making tiny images
The seed node the author insists you don't skip
The integer knob your packaged workflow hands to the user
A full LoRA loader for the graph side of your packaged workflow
The LoRA dropdown your webui users will actually see
The node that hands your finished images to the webui
The UNet loader for Flux-style workflows, with fp8 built in
The video end of your packaged ComfyUI workflow
Route between two images based on whether your prompt mentions a keyword
Route between two models based on your prompt text
如果要视频输入组件那需要安装comfyui-videohelpersuite插件的load video(Upload)节点接入工作流保存api格式工作流即可。
已经支持最新gradio版本依赖,
gradio_workflow.py 目前支持 4 种动态组件类:
GradioTextOk: 用于动态生成正向提示词输入框 (gr.Textbox)。Hua_LoraLoaderModelOnly: 用于动态生成 Lora 模型选择下拉框 (gr.Dropdown)。HuaIntNode: 用于动态生成整数输入框 (gr.Number)。HuaFloatNode: 用于动态生成浮点数输入框 (gr.Number)
你可以在我的镜像中直接使用该插件
免费镜像

概述
<span style="color:blue;">示例工作流在</span> Sample_preview 文件夹里面
<span style="color:blue;">ComfyUI_to_webui 是一个为 ComfyUI工作流变成webui的项目</span>
计划的功能
- 横向标签设置功能: 已经完成编写.......
- 节点支持多国语言: 已经编写完成
- 根据节点数量动态gradio组件增加: 准备中..........
- 收录到comfyui管理器: 已经拉取请求
- 实时日志预览: 已经编写完成
- 队列功能:已完成编写
- 多图显示,预览所有图片:已完成编写
- 自动保存api json流: 已编写完成
- gradio前端动态显示图像输入口:已编写完成
- 模型选择:已经编写完成
- 分辨率选择: 已经编写完成
- 种子管理:已编写完成
- 生成的批次 开发中..... <span style="color:purple;">随机种已经完成</span>
- 增强的界面:已经优化
安装
如果comfyui加载时自动安装模块没能成功可用以下方法手动安装
导航到custom_nodes
- 克隆仓库:
git clone https://github.com/kungful/ComfyUI_to_webui.git cd ComfyUI_to_webui ..\..\..\python_embeded\python.exe -m pip install -r requirements.txt
使用方法
你的comfyui搭建好工作流后不需要手动保存api格式json文件,只需要运行一遍跑通后就可以了,在输出端接入"☀️gradio前端传入图像这个节点就行
已经完成自动保存api工作流功能,工作流位置在output
- api工作流自动保存位置
D:\ └── comfyUI\ ├── ComfyUI\ │ ├── output │ └── ...
注意一个问题
建议接入 (🧙hua_gradio随机种)这个节点,不然comfyui识别到相同的json数据不进行推理直接死机.有了随机种的变化就没问题了。
思维导图节点
不可推理

这是检索多提示词字符串判断图片是否传递哪个模型和图片的布尔节点,为的是跳过puilid的报错