add .gitignore, update README with new API server details, and add requirements.txt for dependencies

This commit is contained in:
iHeyTang
2025-08-08 17:39:20 +08:00
parent 6cc9aeab32
commit ab12c1482d
4 changed files with 79 additions and 43 deletions

View File

@@ -1,22 +1,25 @@
# ComfyUI 工作流管理
![这是图片](https://cdn.roasmax.cn/static/publisher.png)
## 功能
- 工作流上传
- 工作流版本控制
- 工作流加载
- 需配置工作流服务器 (详见**WAAS(工作流即服务) Demo API服务器**)
- 需配置工作流服务器 (详见**WAAS(工作流即服务) Demo API 服务器**)
# WAAS(工作流即服务) Demo API 服务器
# WAAS(工作流即服务) Demo API服务器
![WAAS整体结构.png](WAAS%E6%95%B4%E4%BD%93%E7%BB%93%E6%9E%84.png)
- 路径: ./workflow_service
- 部署: ```modal deploy modal_deploy.py --name waas-demo -e dev```
- 配置: 参考```.env```文件
- 部署: `modal deploy modal_deploy.py --name waas-demo -e dev`
- 配置: 参考`.env`文件
- 必须按照指定规则命名
- **输入节点名**: 前缀 **INPUT_**
- **除生成文件节点外输出节点名**: 前缀 **OUTPUT_**
- 支持输入节点:
- **输入节点名**: 前缀 **INPUT\_**
- **除生成文件节点外输出节点名**: 前缀 **OUTPUT\_**
- 支持输入节点:
- comfyui-core
- 加载图像
- ComfyUI-VideoHelperSuite
@@ -25,8 +28,8 @@
- 整数
- 字符串
- 浮点数
- 支持输出节点:
- 所有在output文件夹中生成文件(图片/视频)的节点
- 支持输出节点:
- 所有在 output 文件夹中生成文件(图片/视频)的节点
- comfyui-easy-use
- 展示任何
- 数据库
@@ -41,15 +44,17 @@
)
```
- 路由
- GET /api/workflow: 列出工作流
- POST /api/workflow: 添加工作流
- DELETE /api/workflow: 删除工作流
- GET /api/run/{base_name}: 获取工作流输入输出元数据
```
输入:
*base_name: 工作流名称
version: 工作流版本
输出:
Json
{
@@ -75,12 +80,14 @@
}
}
```
- POST /api/run/{base_name}: 执行工作流
```
输入:
*base_name: 工作流名称
version: 工作流版本
输出:
Json
{
@@ -91,4 +98,22 @@
"output\\111_00001_.png"
]
}
```
```
# JS 脚本使用指南
### MacOS
将这个脚本直接放在该目录下,重启 ComfyUI 即可
/Applications/ComfyUI.app/Contents/Resources/ComfyUI/custom_nodes/ComfyUI-Manager/js
### Windows
将这个脚本直接放在该目录下,重启 ComfyUI 即可
{Comfy 的安装目录}\comfy\ComfyUI\custom_nodes\ComfyUI-Manager\js
### Q&A
主要是找到 `custom_nodes/ComfyUI-Manager` 的位置,这个目录下有一个 js 目录,把 `publisher.js` 脚本直接扔到这个 js 目录下即可。
一些版本安装的时候,用户额外装的的 custom_nodes 和系统自带的可能还不在一个位置,比如 MacOS 装客户端版本。用户额外装的是在 Documents 下,但 ComfyUI-Manager 是在对应的安装包目录里,得去 `/Applications` 里找。Windows 可能也会有类似的逻辑