112 lines
3.0 KiB
JSON
112 lines
3.0 KiB
JSON
{
|
|
"last_node_id": 5,
|
|
"last_link_id": 5,
|
|
"nodes": [
|
|
{
|
|
"id": 1,
|
|
"type": "LoadImage",
|
|
"pos": [40, 200],
|
|
"size": {"0": 315, "1": 314},
|
|
"flags": {},
|
|
"order": 0,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{"name": "IMAGE", "type": "IMAGE", "links": [1], "slot_index": 0},
|
|
{"name": "MASK", "type": "MASK", "links": null}
|
|
],
|
|
"properties": {"Node name for S&R": "LoadImage"},
|
|
"widgets_values": ["face.jpg", "image"]
|
|
},
|
|
{
|
|
"id": 2,
|
|
"type": "AgeDetectorLoader",
|
|
"pos": [40, 560],
|
|
"size": {"0": 315, "1": 130},
|
|
"flags": {},
|
|
"order": 1,
|
|
"mode": 0,
|
|
"inputs": [],
|
|
"outputs": [
|
|
{"name": "detector", "type": "AGE_DETECTOR", "links": [2], "slot_index": 0}
|
|
],
|
|
"properties": {"Node name for S&R": "AgeDetectorLoader"},
|
|
"widgets_values": ["nateraw/vit-age-classifier", "auto", "fp32", false]
|
|
},
|
|
{
|
|
"id": 3,
|
|
"type": "AgeDetect",
|
|
"pos": [400, 200],
|
|
"size": {"0": 315, "1": 130},
|
|
"flags": {},
|
|
"order": 2,
|
|
"mode": 0,
|
|
"inputs": [
|
|
{"name": "detector", "type": "AGE_DETECTOR", "link": 2},
|
|
{"name": "image", "type": "IMAGE", "link": 1}
|
|
],
|
|
"outputs": [
|
|
{"name": "age", "type": "INT", "links": [3], "slot_index": 0},
|
|
{"name": "age_band", "type": "STRING", "links": [4], "slot_index": 1},
|
|
{"name": "confidence", "type": "FLOAT", "links": null, "slot_index": 2},
|
|
{"name": "summary", "type": "STRING", "links": [5], "slot_index": 3}
|
|
],
|
|
"properties": {"Node name for S&R": "AgeDetect"},
|
|
"widgets_values": ["weighted_mean"]
|
|
},
|
|
{
|
|
"id": 4,
|
|
"type": "PreviewAny",
|
|
"pos": [760, 200],
|
|
"size": {"0": 320, "1": 76},
|
|
"flags": {},
|
|
"order": 3,
|
|
"mode": 0,
|
|
"inputs": [{"name": "source", "type": "*", "link": 5}],
|
|
"outputs": [],
|
|
"properties": {"Node name for S&R": "PreviewAny"},
|
|
"title": "Summary",
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 5,
|
|
"type": "PreviewAny",
|
|
"pos": [760, 320],
|
|
"size": {"0": 320, "1": 76},
|
|
"flags": {},
|
|
"order": 4,
|
|
"mode": 0,
|
|
"inputs": [{"name": "source", "type": "*", "link": 3}],
|
|
"outputs": [],
|
|
"properties": {"Node name for S&R": "PreviewAny"},
|
|
"title": "Age (int)",
|
|
"widgets_values": []
|
|
},
|
|
{
|
|
"id": 6,
|
|
"type": "PreviewAny",
|
|
"pos": [760, 440],
|
|
"size": {"0": 320, "1": 76},
|
|
"flags": {},
|
|
"order": 5,
|
|
"mode": 0,
|
|
"inputs": [{"name": "source", "type": "*", "link": 4}],
|
|
"outputs": [],
|
|
"properties": {"Node name for S&R": "PreviewAny"},
|
|
"title": "Age band",
|
|
"widgets_values": []
|
|
}
|
|
],
|
|
"links": [
|
|
[1, 1, 0, 3, 1, "IMAGE"],
|
|
[2, 2, 0, 3, 0, "AGE_DETECTOR"],
|
|
[3, 3, 0, 5, 0, "INT"],
|
|
[4, 3, 1, 6, 0, "STRING"],
|
|
[5, 3, 3, 4, 0, "STRING"]
|
|
],
|
|
"groups": [],
|
|
"config": {},
|
|
"extra": {},
|
|
"version": 0.4
|
|
}
|