akhaliq's picture
akhaliq HF Staff
Workflow graph: image reference → Ming Decompose → composite subject
4d9f4c7 verified
Raw History Blame Contribute Delete
5 kB
{
"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"}
]
}