ComfyUI Speech Bubble Detector
Speech bubble detector for ComfyUI based on SAM3 Text Segmentation with crop-locked region detection for manga/manhwa cleanup workflows.
Nodes (15)
Get Meta's SAM3 weights into your ComfyUI graph
Draw boxes on the image to guide SAM3
Merge single boxes into one prompt SAM3 accepts
Merge single points into one prompt SAM3 accepts
Build a box prompt from center and size
Build a single point prompt from numbers
Segment anything by typing what you want
SAM3's interactive collector
Mask several regions in one pass
Mark several objects for one multiprompt pass
Click your points right on the image
Track your masked object across every frame
Point-and-box masking when text isn't precise enough
Turn the tracked state into masks and frames you can use
Mark your target on the first frame
ComfyUI Speech Bubble Detector
A ComfyUI custom node package for manga/manhwa speech bubble cleanup workflows.
This package is based on comfyui-sam3 and includes a patched SAM3 Text Segmentation workflow for crop-locked speech bubble detection.
Main node
Search in ComfyUI:
Speech Bubble Detector
This is the renamed/patched version of SAM3 Text Segmentation.
What is changed
- The text segmentation node can use
positive_boxesas crop-locked regions. - When
positive_boxesare connected, detection runs only inside those regions and pastes masks back to the full image. - Added
region_paddinginput for expanding each crop region. - Includes the attention fallback patch to reduce Flash Attention mask-warning spam.
Typical workflow
Use this together with the separate helper node:
JSON Regions to SAM3 Boxes API -> positive_boxes -> Speech Bubble Detector
Recommended settings:
text_prompt = speech bubble
confidence_threshold = 0.1 - 0.2
max_detections = -1
region_padding = 0 - 20
Install
Clone into ComfyUI/custom_nodes:
cd ComfyUI/custom_nodes
git clone https://github.com/daminik124124-ops/ComfyUI-Speech-Bubble-Detector.git
Then restart ComfyUI.
Important
Do not install this fork side-by-side with the original comfyui-sam3 unless you know what you are doing. This package is intended to replace the original SAM3 custom node package for this speech-bubble workflow.
The helper node ComfyUI-SAM3-JSON-Boxes-API remains a separate repository/package.
Credits
Based on the original ComfyUI-SAM3 project by PozzettiAndrea. This fork adds speech-bubble/crop-lock workflow changes.