File size: 5,002 Bytes
4d9f4c7
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
{
  "schema_version": "2",
  "name": "Ming Layer Workflow",
  "references": [
    {
      "id": "ref_image",
      "label": "Input Image",
      "role": "reference",
      "asset_type": "image",
      "inputs": [{"id": "in", "label": "Image", "type": "image"}],
      "outputs": [{"id": "out", "label": "Image", "type": "image"}],
      "x": 40,
      "y": 60,
      "width": 320,
      "height": 220,
      "data": {}
    },
    {
      "id": "ref_resolution",
      "label": "Resolution",
      "role": "reference",
      "asset_type": "text",
      "inputs": [{"id": "in", "label": "Text", "type": "text"}],
      "outputs": [{"id": "out", "label": "Text", "type": "text"}],
      "x": 40,
      "y": 300,
      "width": 200,
      "height": 90,
      "data": {"out": "512 · fastest"}
    },
    {
      "id": "ref_steps",
      "label": "Steps",
      "role": "reference",
      "asset_type": "text",
      "inputs": [{"id": "in", "label": "Text", "type": "text"}],
      "outputs": [{"id": "out", "label": "Text", "type": "text"}],
      "x": 260,
      "y": 300,
      "width": 120,
      "height": 90,
      "data": {"out": "12"}
    },
    {
      "id": "ref_guidance",
      "label": "CFG",
      "role": "reference",
      "asset_type": "text",
      "inputs": [{"id": "in", "label": "Text", "type": "text"}],
      "outputs": [{"id": "out", "label": "Text", "type": "text"}],
      "x": 260,
      "y": 410,
      "width": 120,
      "height": 90,
      "data": {"out": "2.0"}
    },
    {
      "id": "ref_seed",
      "label": "Seed",
      "role": "reference",
      "asset_type": "text",
      "inputs": [{"id": "in", "label": "Text", "type": "text"}],
      "outputs": [{"id": "out", "label": "Text", "type": "text"}],
      "x": 40,
      "y": 410,
      "width": 200,
      "height": 90,
      "data": {"out": "42"}
    },
    {
      "id": "ref_layers",
      "label": "Layer Count",
      "role": "reference",
      "asset_type": "text",
      "inputs": [{"id": "in", "label": "Text", "type": "text"}],
      "outputs": [{"id": "out", "label": "Text", "type": "text"}],
      "x": 260,
      "y": 520,
      "width": 120,
      "height": 90,
      "data": {"out": "5"}
    },
    {
      "id": "ref_spec",
      "label": "Layer Spec (optional)",
      "role": "reference",
      "asset_type": "text",
      "inputs": [{"id": "in", "label": "Text", "type": "text"}],
      "outputs": [{"id": "out", "label": "Text", "type": "text"}],
      "x": 40,
      "y": 520,
      "width": 200,
      "height": 130,
      "data": {"out": ""}
    }
  ],
  "operators": [
    {
      "id": "op_decompose",
      "label": "Ming Decompose",
      "role": "operator",
      "kind": "fn",
      "fn": "ming_decompose",
      "inputs": [
        {"id": "image", "label": "Input Image", "type": "image", "required": true},
        {"id": "resolution", "label": "Resolution", "type": "text"},
        {"id": "steps", "label": "Steps", "type": "text"},
        {"id": "guidance", "label": "CFG", "type": "text"},
        {"id": "seed", "label": "Seed", "type": "text"},
        {"id": "num_layers", "label": "Layer Count", "type": "text"},
        {"id": "spec", "label": "Layer Spec", "type": "text"}
      ],
      "outputs": [{"id": "out_0", "label": "Composite", "type": "image", "output_index": 0}],
      "x": 520,
      "y": 180,
      "width": 250,
      "height": 230,
      "data": {}
    }
  ],
  "subjects": [
    {
      "id": "sub_composite",
      "label": "Reconstructed Composite",
      "role": "subject",
      "asset_type": "image",
      "inputs": [{"id": "in", "label": "Composite", "type": "image"}],
      "outputs": [{"id": "out", "label": "Composite", "type": "image"}],
      "x": 850,
      "y": 190,
      "width": 250,
      "height": 120,
      "data": {}
    }
  ],
  "edges": [
    {"id": "e_image", "from_node_id": "ref_image", "from_port_id": "out", "to_node_id": "op_decompose", "to_port_id": "image", "type": "image"},
    {"id": "e_resolution", "from_node_id": "ref_resolution", "from_port_id": "out", "to_node_id": "op_decompose", "to_port_id": "resolution", "type": "text"},
    {"id": "e_steps", "from_node_id": "ref_steps", "from_port_id": "out", "to_node_id": "op_decompose", "to_port_id": "steps", "type": "text"},
    {"id": "e_guidance", "from_node_id": "ref_guidance", "from_port_id": "out", "to_node_id": "op_decompose", "to_port_id": "guidance", "type": "text"},
    {"id": "e_seed", "from_node_id": "ref_seed", "from_port_id": "out", "to_node_id": "op_decompose", "to_port_id": "seed", "type": "text"},
    {"id": "e_layers", "from_node_id": "ref_layers", "from_port_id": "out", "to_node_id": "op_decompose", "to_port_id": "num_layers", "type": "text"},
    {"id": "e_spec", "from_node_id": "ref_spec", "from_port_id": "out", "to_node_id": "op_decompose", "to_port_id": "spec", "type": "text"},
    {"id": "e_composite", "from_node_id": "op_decompose", "from_port_id": "out_0", "to_node_id": "sub_composite", "to_port_id": "in", "type": "image"}
  ]
}