Files
mangobyed-ComfyUI_Detection…/example_workflow.json
T
Eduardo Ottone ee92581211 Initial release - YOLOv8 object detection node for ComfyUI
- Implements YOLOv8-based object detection with batch output
- Supports multiple YOLOv8 model sizes (nano to extra-large)
- Configurable confidence threshold, IoU threshold, and padding
- Outputs separate images for each detected object
- Includes installation scripts for Windows, Linux, and Mac
- Complete documentation and example workflow
- MIT license for open source distribution
2025-08-22 12:04:30 -07:00

95 lines
2.6 KiB
JSON

{
"last_node_id": 5,
"last_link_id": 8,
"nodes": [
{
"id": 1,
"type": "LoadImage",
"pos": [100, 100],
"size": {"0": 315, "1": 314},
"flags": {},
"order": 0,
"mode": 0,
"outputs": [
{"name": "IMAGE", "type": "IMAGE", "links": [1], "shape": 3, "slot_index": 0},
{"name": "MASK", "type": "MASK", "links": null, "shape": 3}
],
"properties": {"Node name for S&R": "LoadImage"},
"widgets_values": ["example_image.jpg", "image"]
},
{
"id": 2,
"type": "YOLOv8ObjectDetectionNode",
"pos": [500, 100],
"size": {"0": 400, "1": 300},
"flags": {},
"order": 1,
"mode": 0,
"inputs": [
{"name": "image", "type": "IMAGE", "link": 1}
],
"outputs": [
{"name": "detected_objects", "type": "IMAGE", "links": [2, 3], "shape": 3, "slot_index": 0},
{"name": "object_count", "type": "INT", "links": [4], "shape": 3, "slot_index": 1},
{"name": "class_names", "type": "STRING", "links": [5], "shape": 3, "slot_index": 2},
{"name": "detection_info", "type": "STRING", "links": [6], "shape": 3, "slot_index": 3}
],
"properties": {"Node name for S&R": "YOLOv8ObjectDetectionNode"},
"widgets_values": ["yolov8n.pt", 0.25, 0.45, 10, ""]
},
{
"id": 3,
"type": "PreviewImage",
"pos": [1000, 100],
"size": {"0": 315, "1": 246},
"flags": {},
"order": 2,
"mode": 0,
"inputs": [
{"name": "images", "type": "IMAGE", "link": 2}
],
"properties": {"Node name for S&R": "PreviewImage"}
},
{
"id": 4,
"type": "SaveImage",
"pos": [1000, 400],
"size": {"0": 315, "1": 270},
"flags": {},
"order": 3,
"mode": 0,
"inputs": [
{"name": "images", "type": "IMAGE", "link": 3}
],
"properties": {"Node name for S&R": "SaveImage"},
"widgets_values": ["detected_objects"]
},
{
"id": 5,
"type": "ShowText|pysssss",
"pos": [500, 450],
"size": {"0": 400, "1": 200},
"flags": {},
"order": 4,
"mode": 0,
"inputs": [
{"name": "text", "type": "STRING", "link": 6, "widget": {"name": "text"}}
],
"properties": {"Node name for S&R": "ShowText|pysssss"},
"widgets_values": ["", "Detection Information"]
}
],
"links": [
[1, 1, 0, 2, 0, "IMAGE"],
[2, 2, 0, 3, 0, "IMAGE"],
[3, 2, 0, 4, 0, "IMAGE"],
[4, 2, 1, 5, 0, "INT"],
[5, 2, 2, 5, 0, "STRING"],
[6, 2, 3, 5, 0, "STRING"]
],
"groups": [],
"config": {},
"extra": {},
"version": 0.4
}