{
 "last_node_id": 18,
 "last_link_id": 16,
 "nodes": [
  {
   "id": 1,
   "type": "MarkdownNote",
   "pos": [
    0,
    -372.0
   ],
   "size": [
    640,
    202
   ],
   "flags": {},
   "order": 1,
   "mode": 0,
   "inputs": [],
   "outputs": [],
   "properties": {},
   "widgets_values": [
    "**Needs in ComfyUI's `input` folder:** `scene.png`\n\nObject detection: DETR-family, YOLOX and RF-DETR. Output is a mask of the boxes and a text list. Set `classes` (e.g. 'person, car') to filter, raise score_threshold to cut noise. For open-vocabulary detection swap in grounding-dino-tiny and type what to find in `classes`."
   ]
  },
  {
   "id": 2,
   "type": "LoadImage",
   "pos": [
    0.0,
    0.0
   ],
   "size": [
    300,
    340
   ],
   "flags": {},
   "order": 2,
   "mode": 0,
   "inputs": [],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      1,
      5,
      9,
      13
     ],
     "slot_index": 0
    },
    {
     "name": "MASK",
     "type": "MASK",
     "links": [],
     "slot_index": 1
    }
   ],
   "properties": {},
   "widgets_values": [
    "scene.png",
    "image"
   ]
  },
  {
   "id": 3,
   "type": "FastforksDetect",
   "pos": [
    540.0,
    0.0
   ],
   "size": [
    330,
    260
   ],
   "flags": {},
   "order": 3,
   "mode": 0,
   "inputs": [
    {
     "name": "image",
     "type": "IMAGE",
     "link": 1
    }
   ],
   "outputs": [
    {
     "name": "mask",
     "type": "MASK",
     "links": [
      2
     ],
     "slot_index": 0
    },
    {
     "name": "detections",
     "type": "STRING",
     "links": [
      4
     ],
     "slot_index": 1
    }
   ],
   "properties": {},
   "title": "detect 1 (fastforks)",
   "widgets_values": [
    "rf-detr-s-coco",
    "auto",
    "auto",
    0.3,
    "",
    1
   ]
  },
  {
   "id": 4,
   "type": "MaskToImage",
   "pos": [
    950.0,
    0.0
   ],
   "size": [
    200,
    30
   ],
   "flags": {},
   "order": 4,
   "mode": 0,
   "inputs": [
    {
     "name": "mask",
     "type": "MASK",
     "link": 2
    }
   ],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      3
     ],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 5,
   "type": "PreviewImage",
   "pos": [
    1330.0,
    0.0
   ],
   "size": [
    300,
    300
   ],
   "flags": {},
   "order": 5,
   "mode": 0,
   "inputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "link": 3
    }
   ],
   "outputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 6,
   "type": "PreviewAny",
   "pos": [
    950.0,
    70.0
   ],
   "size": [
    300,
    200
   ],
   "flags": {},
   "order": 6,
   "mode": 0,
   "inputs": [
    {
     "name": "source",
     "type": "*",
     "link": 4
    }
   ],
   "outputs": [
    {
     "name": "STRING",
     "type": "STRING",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 7,
   "type": "FastforksDetect",
   "pos": [
    540.0,
    420.0
   ],
   "size": [
    330,
    260
   ],
   "flags": {},
   "order": 7,
   "mode": 0,
   "inputs": [
    {
     "name": "image",
     "type": "IMAGE",
     "link": 5
    }
   ],
   "outputs": [
    {
     "name": "mask",
     "type": "MASK",
     "links": [
      6
     ],
     "slot_index": 0
    },
    {
     "name": "detections",
     "type": "STRING",
     "links": [
      8
     ],
     "slot_index": 1
    }
   ],
   "properties": {},
   "title": "detect 2 (fastforks)",
   "widgets_values": [
    "yolox-s",
    "auto",
    "auto",
    0.3,
    "",
    1
   ]
  },
  {
   "id": 8,
   "type": "MaskToImage",
   "pos": [
    950.0,
    420.0
   ],
   "size": [
    200,
    30
   ],
   "flags": {},
   "order": 8,
   "mode": 0,
   "inputs": [
    {
     "name": "mask",
     "type": "MASK",
     "link": 6
    }
   ],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      7
     ],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 9,
   "type": "PreviewImage",
   "pos": [
    1330.0,
    420.0
   ],
   "size": [
    300,
    300
   ],
   "flags": {},
   "order": 9,
   "mode": 0,
   "inputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "link": 7
    }
   ],
   "outputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 10,
   "type": "PreviewAny",
   "pos": [
    950.0,
    490.0
   ],
   "size": [
    300,
    200
   ],
   "flags": {},
   "order": 10,
   "mode": 0,
   "inputs": [
    {
     "name": "source",
     "type": "*",
     "link": 8
    }
   ],
   "outputs": [
    {
     "name": "STRING",
     "type": "STRING",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 11,
   "type": "FastforksDetect",
   "pos": [
    540.0,
    840.0
   ],
   "size": [
    330,
    260
   ],
   "flags": {},
   "order": 11,
   "mode": 0,
   "inputs": [
    {
     "name": "image",
     "type": "IMAGE",
     "link": 9
    }
   ],
   "outputs": [
    {
     "name": "mask",
     "type": "MASK",
     "links": [
      10
     ],
     "slot_index": 0
    },
    {
     "name": "detections",
     "type": "STRING",
     "links": [
      12
     ],
     "slot_index": 1
    }
   ],
   "properties": {},
   "title": "detect 3 (fastforks)",
   "widgets_values": [
    "rtdetrv2-s-coco",
    "auto",
    "auto",
    0.3,
    "",
    1
   ]
  },
  {
   "id": 12,
   "type": "MaskToImage",
   "pos": [
    950.0,
    840.0
   ],
   "size": [
    200,
    30
   ],
   "flags": {},
   "order": 12,
   "mode": 0,
   "inputs": [
    {
     "name": "mask",
     "type": "MASK",
     "link": 10
    }
   ],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      11
     ],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 13,
   "type": "PreviewImage",
   "pos": [
    1330.0,
    840.0
   ],
   "size": [
    300,
    300
   ],
   "flags": {},
   "order": 13,
   "mode": 0,
   "inputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "link": 11
    }
   ],
   "outputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 14,
   "type": "PreviewAny",
   "pos": [
    950.0,
    910.0
   ],
   "size": [
    300,
    200
   ],
   "flags": {},
   "order": 14,
   "mode": 0,
   "inputs": [
    {
     "name": "source",
     "type": "*",
     "link": 12
    }
   ],
   "outputs": [
    {
     "name": "STRING",
     "type": "STRING",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 15,
   "type": "FastforksDetect",
   "pos": [
    540.0,
    1260.0
   ],
   "size": [
    330,
    260
   ],
   "flags": {},
   "order": 15,
   "mode": 0,
   "inputs": [
    {
     "name": "image",
     "type": "IMAGE",
     "link": 13
    }
   ],
   "outputs": [
    {
     "name": "mask",
     "type": "MASK",
     "links": [
      14
     ],
     "slot_index": 0
    },
    {
     "name": "detections",
     "type": "STRING",
     "links": [
      16
     ],
     "slot_index": 1
    }
   ],
   "properties": {},
   "title": "detect 4 (fastforks)",
   "widgets_values": [
    "dfine-s-coco",
    "auto",
    "auto",
    0.3,
    "",
    1
   ]
  },
  {
   "id": 16,
   "type": "MaskToImage",
   "pos": [
    950.0,
    1260.0
   ],
   "size": [
    200,
    30
   ],
   "flags": {},
   "order": 16,
   "mode": 0,
   "inputs": [
    {
     "name": "mask",
     "type": "MASK",
     "link": 14
    }
   ],
   "outputs": [
    {
     "name": "IMAGE",
     "type": "IMAGE",
     "links": [
      15
     ],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 17,
   "type": "PreviewImage",
   "pos": [
    1330.0,
    1260.0
   ],
   "size": [
    300,
    300
   ],
   "flags": {},
   "order": 17,
   "mode": 0,
   "inputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "link": 15
    }
   ],
   "outputs": [
    {
     "name": "images",
     "type": "IMAGE",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  },
  {
   "id": 18,
   "type": "PreviewAny",
   "pos": [
    950.0,
    1330.0
   ],
   "size": [
    300,
    200
   ],
   "flags": {},
   "order": 18,
   "mode": 0,
   "inputs": [
    {
     "name": "source",
     "type": "*",
     "link": 16
    }
   ],
   "outputs": [
    {
     "name": "STRING",
     "type": "STRING",
     "links": [],
     "slot_index": 0
    }
   ],
   "properties": {},
   "widgets_values": []
  }
 ],
 "links": [
  [
   1,
   2,
   0,
   3,
   0,
   "IMAGE"
  ],
  [
   2,
   3,
   0,
   4,
   0,
   "MASK"
  ],
  [
   3,
   4,
   0,
   5,
   0,
   "IMAGE"
  ],
  [
   4,
   3,
   1,
   6,
   0,
   "*"
  ],
  [
   5,
   2,
   0,
   7,
   0,
   "IMAGE"
  ],
  [
   6,
   7,
   0,
   8,
   0,
   "MASK"
  ],
  [
   7,
   8,
   0,
   9,
   0,
   "IMAGE"
  ],
  [
   8,
   7,
   1,
   10,
   0,
   "*"
  ],
  [
   9,
   2,
   0,
   11,
   0,
   "IMAGE"
  ],
  [
   10,
   11,
   0,
   12,
   0,
   "MASK"
  ],
  [
   11,
   12,
   0,
   13,
   0,
   "IMAGE"
  ],
  [
   12,
   11,
   1,
   14,
   0,
   "*"
  ],
  [
   13,
   2,
   0,
   15,
   0,
   "IMAGE"
  ],
  [
   14,
   15,
   0,
   16,
   0,
   "MASK"
  ],
  [
   15,
   16,
   0,
   17,
   0,
   "IMAGE"
  ],
  [
   16,
   15,
   1,
   18,
   0,
   "*"
  ]
 ],
 "groups": [
  {
   "id": 1,
   "title": "Inputs",
   "bounding": [
    -30.0,
    -90.0,
    360.0,
    460.0
   ],
   "color": "#88A",
   "font_size": 24,
   "flags": {}
  },
  {
   "id": 2,
   "title": "fastforks",
   "bounding": [
    510.0,
    -90.0,
    1150.0,
    1680.0
   ],
   "color": "#3f789e",
   "font_size": 24,
   "flags": {}
  }
 ],
 "config": {},
 "extra": {},
 "version": 0.4
}