A ComfyUI node that integrates DINO-X API for object detection and segmentation. This node allows you to detect and segment objects in images using text prompts.
A ComfyUI node that integrates DINO-X API for object detection and segmentation. This node allows you to detect and segment objects in images using text prompts.
Get your DINO-X API token:
Install the node in your ComfyUI custom_nodes directory:
cd ComfyUI/custom_nodes
git clone https://github.com/yourusername/comfyui-dinox-detector
cd comfyui-dinox-detector
pip install -e .
In ComfyUI, find the "DINO-X Object Detector" node under the "detection" category
Connect your inputs:
The node outputs:
{
"3": {
"class_type": "LoadImage",
"inputs": {
"image": "example.jpg"
}
},
"4": {
"class_type": "DinoxDetector",
"inputs": {
"image": ["3", 0],
"text_prompt": "person . car . dog . cat . bird",
"api_token": "your-api-token-here",
"bbox_threshold": 0.25
}
},
"5": {
"class_type": "PreviewImage",
"inputs": {
"images": ["4", 0]
}
},
"6": {
"class_type": "PreviewImage",
"inputs": {
"images": ["4", 1]
}
}
}
pip install -e ".[dev]"
pytest dinox_detector/test_node.py -v
The tests cover:
The test suite includes:
Test assets are stored in the test_assets
directory.
This node is released under the Apache 2.0 license. See LICENSE file for details.