安装方法
第一种
通过manager搜索 segment下载即可。
第二种
- 进入 ComfyUI 的
custom_nodes
目录,并打开cmd - 使用以下命令克隆仓库:
git clone https://github.com/storyicon/comfyui_segment_anything.git
- 进入文件夹
cd comfyui_segment_anything
- 安装相应库文件
==虚拟环境==
pip install -r requirements.txt
==内置python环境==
python -m pip install -r requirements.txt
模型下载
- bert-base-uncased模型:点击跳转,下载这五个文件,放入
ComfyUI/models/bert-base-uncased
文件夹下(若无,请自行创建)。
- grounding-dino模型:点击跳转,将以下文件放入
ComfyUI/models/grounding-dino
目录中(若无,请自行创建):
- SAM模型:以下模型大家按需下载即可,下载完毕放入ComfyUI/models/sams文件夹下。
- sam_vit_h:点击下载
- sam_vit_l:点击下载
- sam_vit_b:点击下载
- sam _hq_vit _h:点击下载
- sam_hq_vit_l:点击下载
- sam_hq_vit_b:点击下载
- mobile sam:点击下载