Extensions/ComfyUI_to_webui
ComfyUI Extension

ComfyUI_to_webui

Encapsulate the comfyui workflow as a gradio webui

By kungful·Created 2 years ago·Updated 8 months ago· 25
kungful/ComfyUI_to_webui
Nodes20
On cloudLocal install
Category❤️ 靓仔 ✨
Stars25
Updated8 months ago

Nodes (20)

hua_Barcode Generator

Generate Code128 barcodes as images, right inside your workflow

❤️ 靓仔 ✨
hua_Barcode Seed

A fixed seed value that also hands you the author's repo link

❤️ 靓仔 ✨
✨ Deepseek chat (Hua)

The no-fuss ComfyUI chatbot

❤️ 靓仔 ✨
⭐Mind Map

The 'Mind Map' node that is not meant to run — don't wire it in

❤️ 靓仔 ✨
☀️Gradio Frontend Input Image

The upload box that lets your friends feed images into your ComfyUI workflow

❤️ 靓仔 ✨
🔥Gradio Negative Prompt

The negative prompt box for your packaged ComfyUI workflow

❤️ 靓仔 ✨
💧Gradio Positive Prompt

The positive-prompt box in your packaged ComfyUI workflow

❤️ 靓仔 ✨
🌊hua_gradio Checkpoint Loader

A checkpoint loader that lets your webui users switch models

❤️ 靓仔 ✨
🔢Float Input (Hua)

A float input that becomes a slider in your packaged webui

❤️ 靓仔 ✨
📁hua_gradio_json Save

The node that saves the workflow your Gradio frontend runs

❤️ 靓仔 ✨
📜hua_gradio Resolution

The width/height control that keeps your packaged workflow from making tiny images

❤️ 靓仔 ✨
🧙hua_gradio Random Seed

The seed node the author insists you don't skip

❤️ 靓仔 ✨
🔢Integer Input (Hua)

The integer knob your packaged workflow hands to the user

❤️ 靓仔 ✨
🌊hua_gradio_Lora Loader

A full LoRA loader for the graph side of your packaged workflow

❤️ 靓仔 ✨
🌊hua_gradio_Lora Model Only

The LoRA dropdown your webui users will actually see

❤️ 靓仔 ✨
🌙Image Output to Gradio Frontend

The node that hands your finished images to the webui

❤️ 靓仔 ✨
🌊hua_gradio_UNET Loader

The UNet loader for Flux-style workflows, with fp8 built in

❤️ 靓仔 ✨
🎬Video Output (Gradio)

The video end of your packaged ComfyUI workflow

❤️ 靓仔 ✨
🌵Boolean Image

Route between two images based on whether your prompt mentions a keyword

❤️ 靓仔 ✨
🌴Boolean Model

Route between two models based on your prompt text

❤️ 靓仔 ✨
Readme

如果要视频输入组件那需要安装comfyui-videohelpersuite插件的load video(Upload)节点接入工作流保存api格式工作流即可。 已经支持最新gradio版本依赖, gradio_workflow.py 目前支持 4 种动态组件类:

  1. GradioTextOk: 用于动态生成正向提示词输入框 (gr.Textbox)。
  2. Hua_LoraLoaderModelOnly: 用于动态生成 Lora 模型选择下拉框 (gr.Dropdown)。
  3. HuaIntNode: 用于动态生成整数输入框 (gr.Number)。
  4. HuaFloatNode: 用于动态生成浮点数输入框 (gr.Number) newui2 你可以在我的镜像中直接使用该插件 免费镜像 前后端原理

概述

<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

  1. 克隆仓库
    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

  1. api工作流自动保存位置
    D:\
      └── comfyUI\
        ├── ComfyUI\
        │   ├── output
        │   └── ...
      
    

注意一个问题

建议接入 (🧙hua_gradio随机种)这个节点,不然comfyui识别到相同的json数据不进行推理直接死机.有了随机种的变化就没问题了。

思维导图节点

不可推理 预览image

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

预览image 预览model image