Extensions/Comfyui_mobilesam
ComfyUI Extension

Comfyui_mobilesam

NODES: Mobile SAM Model Loader, Mobile SAM Detector, Mobile SAM Predictor

By solution9th·Created 2 years ago·Updated 2 years ago· 0
solution9th/Comfyui_mobilesam
Nodes
On cloudLocal install
Stars0
Updated2 years ago
Readme

ComfyUI-MobileSam

基于 MobileSam 的 ComfyUI 自定义节点,目前仅支持手动输入坐标信息,不支持图片交互式获取坐标。

example image

安装

Clone 仓库到 ComfyUI/custom_nodes

cd Your-ComfyUI/custom_nodes
git clone [email protected]:globalsphere/comfyui-mobilesam.git

安装依赖

cd Your-ComfyUI/custom_nodes/comfyui-mobilesam
pip install -r requirements.txt

使用

在 ComfyUI 中加载 workflows 文件夹中的工作流,Mobile SAM Detector 节点中的 start_x、start_y 表示矩形框左上坐标的 x、y 值,end_x、end_y 表示矩形框右下坐标的 x、y 值,如果 end_x、end_y 均为 0,则表示使用点选模式(以 start_x、start_y 坐标点选)。