akhaliq's picture
akhaliq HF Staff
Convert the Blocks UI to a gr.Workflow canvas
9484d97
Raw History Blame Contribute Delete
7.62 kB
{
"schema_version": "2",
"name": "WorldCrafter",
"references": [
{
"id": "ref_i2v_image", "label": "Start Image", "role": "reference",
"asset_type": "image", "x": 0, "y": 0,
"inputs": [{"id": "in", "label": "Image", "type": "image"}],
"outputs": [{"id": "out", "label": "Image", "type": "image"}]
},
{
"id": "ref_i2v_prompt", "label": "I2V Prompt", "role": "reference",
"asset_type": "text", "x": 0, "y": 160,
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"data": {"out": "A cozy living room with a sofa and a window; the camera moves forward and turns right to reveal a hallway."}
},
{
"id": "ref_i2v_actions", "label": "I2V Camera Actions", "role": "reference",
"asset_type": "text", "x": 0, "y": 320,
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"data": {"out": "forward1x2\nyaw_right45x2"}
},
{
"id": "ref_i2v_chunks", "label": "I2V Chunks", "role": "reference",
"asset_type": "number", "x": 0, "y": 480,
"inputs": [{"id": "in", "label": "Number", "type": "number"}],
"outputs": [{"id": "out", "label": "Number", "type": "number"}],
"data": {"out": 3}
},
{
"id": "ref_i2v_seed", "label": "I2V Seed", "role": "reference",
"asset_type": "number", "x": 0, "y": 620,
"inputs": [{"id": "in", "label": "Number", "type": "number"}],
"outputs": [{"id": "out", "label": "Number", "type": "number"}],
"data": {"out": 42}
},
{
"id": "ref_t2v_prompt", "label": "T2V Prompt", "role": "reference",
"asset_type": "text", "x": 0, "y": 840,
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"data": {"out": "A sunlit medieval alley with stone walls and market stalls; the camera glides forward and turns left into a courtyard."}
},
{
"id": "ref_t2v_actions", "label": "T2V Camera Actions", "role": "reference",
"asset_type": "text", "x": 0, "y": 1000,
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}],
"data": {"out": "forward1x2\nyaw_left45x2"}
},
{
"id": "ref_t2v_chunks", "label": "T2V Chunks", "role": "reference",
"asset_type": "number", "x": 0, "y": 1160,
"inputs": [{"id": "in", "label": "Number", "type": "number"}],
"outputs": [{"id": "out", "label": "Number", "type": "number"}],
"data": {"out": 3}
},
{
"id": "ref_t2v_seed", "label": "T2V Seed", "role": "reference",
"asset_type": "number", "x": 0, "y": 1300,
"inputs": [{"id": "in", "label": "Number", "type": "number"}],
"outputs": [{"id": "out", "label": "Number", "type": "number"}],
"data": {"out": 42}
}
],
"operators": [
{
"id": "op_i2v", "label": "WorldCrafter Image → Video", "role": "operator",
"kind": "fn", "fn": "i2v", "x": 460, "y": 160,
"inputs": [
{"id": "image", "label": "Image", "type": "image", "required": true},
{"id": "prompt", "label": "Prompt", "type": "text", "required": true},
{"id": "actions", "label": "Camera Actions", "type": "text", "required": true},
{"id": "negative_prompt", "label": "Negative Prompt", "type": "text"},
{"id": "num_chunks", "label": "Chunks", "type": "number", "default_value": 3},
{"id": "seed", "label": "Seed", "type": "number", "default_value": 42}
],
"outputs": [
{"id": "video", "label": "Video", "type": "video", "output_index": 0},
{"id": "info", "label": "Run Summary", "type": "text", "output_index": 1}
]
},
{
"id": "op_t2v", "label": "WorldCrafter Text → Video", "role": "operator",
"kind": "fn", "fn": "t2v", "x": 460, "y": 960,
"inputs": [
{"id": "prompt", "label": "Prompt", "type": "text", "required": true},
{"id": "actions", "label": "Camera Actions", "type": "text", "required": true},
{"id": "negative_prompt", "label": "Negative Prompt", "type": "text"},
{"id": "num_chunks", "label": "Chunks", "type": "number", "default_value": 3},
{"id": "seed", "label": "Seed", "type": "number", "default_value": 42}
],
"outputs": [
{"id": "video", "label": "Video", "type": "video", "output_index": 0},
{"id": "info", "label": "Run Summary", "type": "text", "output_index": 1}
]
}
],
"subjects": [
{
"id": "sub_i2v_video", "label": "I2V Video", "role": "subject",
"asset_type": "video", "x": 920, "y": 160,
"inputs": [{"id": "in", "label": "Video", "type": "video"}],
"outputs": [{"id": "out", "label": "Video", "type": "video"}]
},
{
"id": "sub_i2v_info", "label": "I2V Summary", "role": "subject",
"asset_type": "text", "x": 920, "y": 420,
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}]
},
{
"id": "sub_t2v_video", "label": "T2V Video", "role": "subject",
"asset_type": "video", "x": 920, "y": 960,
"inputs": [{"id": "in", "label": "Video", "type": "video"}],
"outputs": [{"id": "out", "label": "Video", "type": "video"}]
},
{
"id": "sub_t2v_info", "label": "T2V Summary", "role": "subject",
"asset_type": "text", "x": 920, "y": 1220,
"inputs": [{"id": "in", "label": "Text", "type": "text"}],
"outputs": [{"id": "out", "label": "Text", "type": "text"}]
}
],
"edges": [
{"id": "e1", "from_node_id": "ref_i2v_image", "from_port_id": "out", "to_node_id": "op_i2v", "to_port_id": "image", "type": "image"},
{"id": "e2", "from_node_id": "ref_i2v_prompt", "from_port_id": "out", "to_node_id": "op_i2v", "to_port_id": "prompt", "type": "text"},
{"id": "e3", "from_node_id": "ref_i2v_actions", "from_port_id": "out", "to_node_id": "op_i2v", "to_port_id": "actions", "type": "text"},
{"id": "e4", "from_node_id": "ref_i2v_chunks", "from_port_id": "out", "to_node_id": "op_i2v", "to_port_id": "num_chunks", "type": "number"},
{"id": "e5", "from_node_id": "ref_i2v_seed", "from_port_id": "out", "to_node_id": "op_i2v", "to_port_id": "seed", "type": "number"},
{"id": "e6", "from_node_id": "op_i2v", "from_port_id": "video", "to_node_id": "sub_i2v_video", "to_port_id": "in", "type": "video"},
{"id": "e7", "from_node_id": "op_i2v", "from_port_id": "info", "to_node_id": "sub_i2v_info", "to_port_id": "in", "type": "text"},
{"id": "e8", "from_node_id": "ref_t2v_prompt", "from_port_id": "out", "to_node_id": "op_t2v", "to_port_id": "prompt", "type": "text"},
{"id": "e9", "from_node_id": "ref_t2v_actions", "from_port_id": "out", "to_node_id": "op_t2v", "to_port_id": "actions", "type": "text"},
{"id": "e10", "from_node_id": "ref_t2v_chunks", "from_port_id": "out", "to_node_id": "op_t2v", "to_port_id": "num_chunks", "type": "number"},
{"id": "e11", "from_node_id": "ref_t2v_seed", "from_port_id": "out", "to_node_id": "op_t2v", "to_port_id": "seed", "type": "number"},
{"id": "e12", "from_node_id": "op_t2v", "from_port_id": "video", "to_node_id": "sub_t2v_video", "to_port_id": "in", "type": "video"},
{"id": "e13", "from_node_id": "op_t2v", "from_port_id": "info", "to_node_id": "sub_t2v_info", "to_port_id": "in", "type": "text"}
]
}