3af2ddd63b23777b68062145f1cd43dac201e1cc
ComfyUI_RH_OminiControl
ComfyUI_RH_OminiControl 是一个 ComfyUI 的插件,基于 OminiControl,旨在通过分拆 pipeline 加载优化性能,使该项目能够高效运行于 NVIDIA RTX 4090 上。同时,使用 schnell 模型生成的 spatial 和 fill,减少采样步数,从而提高计算效率。
ComfyUI_RH_OminiControl 提供了一种更加高效且易于集成的方式来使用 OminiControl 模型。
功能概述 / Features
- 高效计算 / Efficient Computation: 通过分拆 pipeline 加载优化性能。
- schnell 模型支持 / Schnell Model Support: 使用更少的采样步数以提高效率。
- ComfyUI 插件集成 / ComfyUI Plugin Integration: 与 ComfyUI 集成,简化使用流程。
- FluxPipeline 支持 / FluxPipeline Support: 与 diffusers 库配合使用,支持 FluxPipeline 格式。
安装要求 / Installation Requirements
大部分所需的库为 ComfyUI 常用库,因此无需额外安装其他依赖。但以下库可能需要安装:
- diffusers 版本:0.31.0(支持 FluxPipeline)
pip install diffusers==0.31.0
项目目录结构 / Project Directory Structure
模型文件路径位于 {comfyui_dir}/models/flux/,以下是项目的目录结构:
bash
复制代码
{comfyui_dir}/models/flux/
├── FLUX.1-schnell/ # diffusers 格式的 Flux 模型
│ └── 下载地址:https://huggingface.co/black-forest-labs/FLUX.1-schnell
│
├── ComfyUI_RH_OminiControl/ # ComfyUI_RH_OminiControl 插件的模型目录
│ ├── depth-anything-small-hf/ # 用于深度识别的模型
│ │ └── 下载地址:https://huggingface.co/LiheYoung/depth-anything-small-hf/tree/main
│ ├── experimental/ # 实验性模型
│ │ └── 下载地址:https://huggingface.co/Yuanshi/OminiControl/tree/main/experimental
│ └── omini/ # OminiControl 主模型
│ └── 下载地址:https://huggingface.co/Yuanshi/OminiControl/tree/main/omini
下载模型 / Model Downloads
FLUX.1-schnell 模型:
下载链接:FLUX.1-schnell 模型
深度识别模型 (depth-anything-small-hf):
下载链接:深度识别模型
OminiControl 模型:
下载链接:OminiControl 模型
实验性模型: 实验性模型
使用说明 / Usage Instructions
下载并解压模型到指定路径:{comfyui_dir}/models/flux/。
确保安装了所有必需的库(如 diffusers)。
配置并启动 ComfyUI_RH_OminiControl 插件。
注意事项 / Notes
请确保下载了正确版本的模型,并将其放置在正确的目录下。
若缺少任何库或出现错误,请检查是否已正确安装所有依赖项。
Languages
Python
100%