kijai/ComfyUI-segment-anything-2

ComfyUI nodes to use segment-anything-2

1,217

stars

70

commits

Python

primary language

Sep 28, 2025

updated

README

WORK IN PROGRESS

PointsEditor is now available for testing in KJNodes: https://github.com/kijai/ComfyUI-KJNodes

https://github.com/user-attachments/assets/c4a88647-679f-4cf2-ba1f-4fa8c7308c1e

https://github.com/user-attachments/assets/f15fafe8-72e8-41cc-b246-e947b1efe5ec

https://github.com/user-attachments/assets/c1efb595-0fb1-4ae7-b4fa-2def08eda0a8

For testing only currently.

Functional, but needs better coordinate selector.

For now mask postprocessing is disabled due to it needing cuda extension compilation. We can use other nodes for this purpose anyway, so might leave it that way, we'll see.

Models are automatically downloade from https://huggingface.co/Kijai/sam2-safetensors/tree/main

to ComfyUI/models/sam2

Original repo:

https://github.com/facebookresearch/segment-anything-2

Contributors

kijai

66 commits

comfy-pr-bot

2 commits

jim-steele

1 commits

TomasRJ

1 commits

kijai/ComfyUI-segment-anything-2

ComfyUI nodes to use segment-anything-2

1,217

stars

70

commits

Python

primary language

Sep 28, 2025

updated

README

WORK IN PROGRESS

PointsEditor is now available for testing in KJNodes: https://github.com/kijai/ComfyUI-KJNodes

https://github.com/user-attachments/assets/c4a88647-679f-4cf2-ba1f-4fa8c7308c1e

https://github.com/user-attachments/assets/f15fafe8-72e8-41cc-b246-e947b1efe5ec

https://github.com/user-attachments/assets/c1efb595-0fb1-4ae7-b4fa-2def08eda0a8

For testing only currently.

Functional, but needs better coordinate selector.

For now mask postprocessing is disabled due to it needing cuda extension compilation. We can use other nodes for this purpose anyway, so might leave it that way, we'll see.

Models are automatically downloade from https://huggingface.co/Kijai/sam2-safetensors/tree/main

to ComfyUI/models/sam2

Original repo:

https://github.com/facebookresearch/segment-anything-2

Contributors

kijai

66 commits

comfy-pr-bot

2 commits

jim-steele

1 commits

TomasRJ

1 commits

Languages

Python

100.0%