comfyui-controller
v2.1.1支持批量生成10-100个修仙视频和图片,集成LTX2多版本模型与自动化浏览器及工作流管理功能。
Installation
Please help me install the skill `comfyui-controller` from SkillHub official store.
npx skills add yun520-1/comfyui-controller
ComfyUI Controller 技能
功能
支持本地和服务器 ComfyUI 的 smart 控制器: - 🤖 智能模型扫描(本地/服务器) - 🎯 自动工作流选择 - 📸 文生图/图生图 - 🎬 视频生成支持 - 📁 批量任务处理 - 🔄 双模式支持(本地 + 服务器)
配置
编辑 config.json:
{
"local": {
"enabled": true,
"comfyui_path": "/path/to/ComfyUI",
"host": "127.0.0.1",
"port": 8188
},
"server": {
"enabled": true,
"host": "wp08.unicorn.org.cn",
"port": 29592,
"protocol": "https"
}
}
使用
命令行
# 使用本地 ComfyUI
python3 comfyui_smart_controller.py --subject "一个美丽的女孩" --local
# 使用服务器 ComfyUI
python3 comfyui_smart_controller.py --subject "赛博朋克城市" --server
# 自动选择(优先本地,失败则服务器)
python3 comfyui_smart_controller.py --subject "风景" --auto
Python API
from comfyui_smart_controller import ComfyUIIntelligentController
# 自动模式
controller = ComfyUIIntelligentController(mode="auto")
# 或指定模式
controller = ComfyUIIntelligentController(mode="local")
controller = ComfyUIIntelligentController(mode="server")
# 生成图片
result = controller.auto_generate(
subject="一个美丽的女孩",
style="portrait",
width=512,
height=768
)
安装
cd /home/admin/openclaw/workspace/skills/comfyui-controller
pip install -r requirements.txt
文件结构
comfyui-controller/
├── comfyui_smart_controller.py # 主控制器
├── config.json # 配置文件
├── requirements.txt # 依赖
└── SKILL.md # 说明文档