SAM3 Detect Node
Overview
The SAM3 Detect node performs open-vocabulary detection and segmentation using text descriptions, bounding boxes, or point prompts. It can identify and segment objects in an image based on what you describe in text, where you draw boxes, or where you click points.Inputs
Parameter Constraints and Notes
- Text prompts: To use text-based detection, you must provide
conditioninginput. When text conditioning is provided, the node runs text-guided detection on the image. - Box prompts: When
bboxesare provided without text conditioning, the node segments the area inside each bounding box. - Point prompts: When
positive_coordsornegative_coordsare provided, the node uses point-based segmentation. Points are scaled to the model’s internal resolution automatically. - Multiple prompt types: You can combine different prompt types. For example, you can provide both text conditioning and bounding boxes to restrict text detection to specific areas.
- Batch processing: The node supports batched images. When processing multiple frames, bounding boxes can be provided per-frame using a list of lists format.
- JSON format for points: Point coordinates must be provided as valid JSON strings in the format
[{"x": 100, "y": 200}, {"x": 150, "y": 250}].
Outputs
This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! Edit on GitHub
Source fingerprint (SHA-256):
3f61343c284c249476f2010831863c6094260b11d0a348003b270a126c67d399