Skip to content

Conversation

@ZHI-A0
Copy link

@ZHI-A0 ZHI-A0 commented Feb 4, 2026

This change adds multi-prompt input support for video segmentation, enabling multiple objects to be tracked in a single run. A new multi prompt mode accepts SAM3_MULTI_PROMPTS, converts each prompt region into per-object video prompts (points/boxes), and handles multiple boxes per object. The UI now shows the multi_prompts input when prompt_mode=multi, and multi_prompts input will auto-switch the node into multi mode.
image

@Jalen-Brunson
Copy link

This is a great change. I installed it from @ZHI-A0's git. +1 to merging this ASAP!

@Jalen-Brunson
Copy link

@ZHI-A0 There's a bug in the widget that adds 2 points for a right click (in Chrome). I asked Claude to fix it:
sam3_multiregion_widget.js

@ZHI-A0
Copy link
Author

ZHI-A0 commented Feb 10, 2026

@ZHI-A0 There's a bug in the widget that adds 2 points for a right click (in Chrome). I asked Claude to fix it: sam3_multiregion_widget.js

Thanks for pointing this out. In the original multi-prompts controller, there are two overlapping right-click handlers. I’ve commented out one of them in this update to fix the bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants