Spaces:
Running
Running
| { | |
| "schema_version": "2", | |
| "name": "Lingbot Video Pipeline", | |
| "references": [ | |
| { | |
| "id": "ref_prompt", | |
| "label": "Prompt", | |
| "role": "reference", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { "id": "in", "label": "Text", "type": "text" } | |
| ], | |
| "outputs": [ | |
| { "id": "out", "label": "Text", "type": "text" } | |
| ], | |
| "x": 80, "y": 120, "width": 220, "height": 124, "data": {} | |
| }, | |
| { | |
| "id": "ref_image", | |
| "label": "First frame", | |
| "role": "reference", | |
| "asset_type": "image", | |
| "inputs": [ | |
| { "id": "in", "label": "Image", "type": "image" } | |
| ], | |
| "outputs": [ | |
| { "id": "out", "label": "Image", "type": "image" } | |
| ], | |
| "x": 80, "y": 360, "width": 220, "height": 124, "data": {} | |
| } | |
| ], | |
| "operators": [ | |
| { | |
| "id": "op_t2v", | |
| "label": "Text-to-Video", | |
| "role": "operator", | |
| "kind": "space", | |
| "space_id": "victor/lingbot-video", | |
| "endpoint": "/generate_t2v", | |
| "inputs": [ | |
| { "id": "in_0", "label": "Prompt", "type": "text", "required": true }, | |
| { "id": "in_1", "label": "Resolution", "type": "text" }, | |
| { "id": "in_2", "label": "Video duration (s)", "type": "number" }, | |
| { "id": "in_3", "label": "Inference steps", "type": "number" }, | |
| { "id": "in_4", "label": "Guidance scale", "type": "number" }, | |
| { "id": "in_5", "label": "Flow shift", "type": "number" }, | |
| { "id": "in_6", "label": "Negative prompt", "type": "text" }, | |
| { "id": "in_7", "label": "Seed", "type": "number" }, | |
| { "id": "in_8", "label": "Randomize seed", "type": "boolean" }, | |
| { "id": "in_9", "label": "Enhance prompt", "type": "boolean" } | |
| ], | |
| "outputs": [ | |
| { "id": "out_0", "label": "Generated video", "type": "video", "output_index": 0 }, | |
| { "id": "out_1", "label": "Seed used", "type": "number", "output_index": 1 }, | |
| { "id": "out_2", "label": "Caption", "type": "text", "output_index": 2 } | |
| ], | |
| "x": 420, "y": 40, "width": 240, "height": 220, "data": {} | |
| }, | |
| { | |
| "id": "op_i2v", | |
| "label": "Image-to-Video", | |
| "role": "operator", | |
| "kind": "space", | |
| "space_id": "victor/lingbot-video", | |
| "endpoint": "/generate_i2v", | |
| "inputs": [ | |
| { "id": "in_0", "label": "First frame", "type": "image", "required": true }, | |
| { "id": "in_1", "label": "Prompt", "type": "text", "required": true }, | |
| { "id": "in_2", "label": "Resolution", "type": "text" }, | |
| { "id": "in_3", "label": "Video duration (s)", "type": "number" }, | |
| { "id": "in_4", "label": "Inference steps", "type": "number" }, | |
| { "id": "in_5", "label": "Guidance scale", "type": "number" }, | |
| { "id": "in_6", "label": "Flow shift", "type": "number" }, | |
| { "id": "in_7", "label": "Negative prompt", "type": "text" }, | |
| { "id": "in_8", "label": "Seed", "type": "number" }, | |
| { "id": "in_9", "label": "Randomize seed", "type": "boolean" }, | |
| { "id": "in_10", "label": "Enhance prompt", "type": "boolean" } | |
| ], | |
| "outputs": [ | |
| { "id": "out_0", "label": "Generated video", "type": "video", "output_index": 0 }, | |
| { "id": "out_1", "label": "Seed used", "type": "number", "output_index": 1 }, | |
| { "id": "out_2", "label": "Caption", "type": "text", "output_index": 2 } | |
| ], | |
| "x": 420, "y": 300, "width": 240, "height": 240, "data": {} | |
| }, | |
| { | |
| "id": "op_t2i", | |
| "label": "Text-to-Image", | |
| "role": "operator", | |
| "kind": "space", | |
| "space_id": "victor/lingbot-video", | |
| "endpoint": "/generate_t2i", | |
| "inputs": [ | |
| { "id": "in_0", "label": "Prompt", "type": "text", "required": true }, | |
| { "id": "in_1", "label": "Resolution", "type": "text" }, | |
| { "id": "in_2", "label": "Inference steps", "type": "number" }, | |
| { "id": "in_3", "label": "Guidance scale", "type": "number" }, | |
| { "id": "in_4", "label": "Flow shift", "type": "number" }, | |
| { "id": "in_5", "label": "Negative prompt", "type": "text" }, | |
| { "id": "in_6", "label": "Seed", "type": "number" }, | |
| { "id": "in_7", "label": "Randomize seed", "type": "boolean" }, | |
| { "id": "in_8", "label": "Enhance prompt", "type": "boolean" } | |
| ], | |
| "outputs": [ | |
| { "id": "out_0", "label": "Generated image", "type": "image", "output_index": 0 }, | |
| { "id": "out_1", "label": "Seed used", "type": "number", "output_index": 1 }, | |
| { "id": "out_2", "label": "Caption", "type": "text", "output_index": 2 } | |
| ], | |
| "x": 420, "y": 600, "width": 240, "height": 220, "data": {} | |
| } | |
| ], | |
| "subjects": [ | |
| { | |
| "id": "sub_video_t2v", | |
| "label": "T2V Video", | |
| "role": "subject", | |
| "asset_type": "video", | |
| "inputs": [ | |
| { "id": "in", "label": "Video", "type": "video" } | |
| ], | |
| "outputs": [ | |
| { "id": "out", "label": "Video", "type": "video" } | |
| ], | |
| "x": 820, "y": 20, "width": 220, "height": 107, "data": {} | |
| }, | |
| { | |
| "id": "sub_caption_t2v", | |
| "label": "T2V Caption", | |
| "role": "subject", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { "id": "in", "label": "Text", "type": "text" } | |
| ], | |
| "outputs": [ | |
| { "id": "out", "label": "Text", "type": "text" } | |
| ], | |
| "x": 820, "y": 150, "width": 220, "height": 107, "data": {} | |
| }, | |
| { | |
| "id": "sub_video_i2v", | |
| "label": "I2V Video", | |
| "role": "subject", | |
| "asset_type": "video", | |
| "inputs": [ | |
| { "id": "in", "label": "Video", "type": "video" } | |
| ], | |
| "outputs": [ | |
| { "id": "out", "label": "Video", "type": "video" } | |
| ], | |
| "x": 820, "y": 320, "width": 220, "height": 107, "data": {} | |
| }, | |
| { | |
| "id": "sub_caption_i2v", | |
| "label": "I2V Caption", | |
| "role": "subject", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { "id": "in", "label": "Text", "type": "text" } | |
| ], | |
| "outputs": [ | |
| { "id": "out", "label": "Text", "type": "text" } | |
| ], | |
| "x": 820, "y": 450, "width": 220, "height": 107, "data": {} | |
| }, | |
| { | |
| "id": "sub_image", | |
| "label": "T2I Image", | |
| "role": "subject", | |
| "asset_type": "image", | |
| "inputs": [ | |
| { "id": "in", "label": "Image", "type": "image" } | |
| ], | |
| "outputs": [ | |
| { "id": "out", "label": "Image", "type": "image" } | |
| ], | |
| "x": 820, "y": 620, "width": 220, "height": 107, "data": {} | |
| }, | |
| { | |
| "id": "sub_caption_t2i", | |
| "label": "T2I Caption", | |
| "role": "subject", | |
| "asset_type": "text", | |
| "inputs": [ | |
| { "id": "in", "label": "Text", "type": "text" } | |
| ], | |
| "outputs": [ | |
| { "id": "out", "label": "Text", "type": "text" } | |
| ], | |
| "x": 820, "y": 750, "width": 220, "height": 107, "data": {} | |
| } | |
| ], | |
| "edges": [ | |
| { | |
| "id": "e_prompt_t2v", | |
| "from_node_id": "ref_prompt", "from_port_id": "out", | |
| "to_node_id": "op_t2v", "to_port_id": "in_0", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e_prompt_t2i", | |
| "from_node_id": "ref_prompt", "from_port_id": "out", | |
| "to_node_id": "op_t2i", "to_port_id": "in_0", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e_image_i2v", | |
| "from_node_id": "ref_image", "from_port_id": "out", | |
| "to_node_id": "op_i2v", "to_port_id": "in_0", | |
| "type": "image" | |
| }, | |
| { | |
| "id": "e_prompt_i2v", | |
| "from_node_id": "ref_prompt", "from_port_id": "out", | |
| "to_node_id": "op_i2v", "to_port_id": "in_1", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e_t2v_video", | |
| "from_node_id": "op_t2v", "from_port_id": "out_0", | |
| "to_node_id": "sub_video_t2v", "to_port_id": "in", | |
| "type": "video" | |
| }, | |
| { | |
| "id": "e_t2v_caption", | |
| "from_node_id": "op_t2v", "from_port_id": "out_2", | |
| "to_node_id": "sub_caption_t2v", "to_port_id": "in", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e_i2v_video", | |
| "from_node_id": "op_i2v", "from_port_id": "out_0", | |
| "to_node_id": "sub_video_i2v", "to_port_id": "in", | |
| "type": "video" | |
| }, | |
| { | |
| "id": "e_i2v_caption", | |
| "from_node_id": "op_i2v", "from_port_id": "out_2", | |
| "to_node_id": "sub_caption_i2v", "to_port_id": "in", | |
| "type": "text" | |
| }, | |
| { | |
| "id": "e_t2i_image", | |
| "from_node_id": "op_t2i", "from_port_id": "out_0", | |
| "to_node_id": "sub_image", "to_port_id": "in", | |
| "type": "image" | |
| }, | |
| { | |
| "id": "e_t2i_caption", | |
| "from_node_id": "op_t2i", "from_port_id": "out_2", | |
| "to_node_id": "sub_caption_t2i", "to_port_id": "in", | |
| "type": "text" | |
| } | |
| ] | |
| } | |