ysharma HF Staff commited on
Commit
4fadaa8
·
verified ·
1 Parent(s): 518ef4a

ZeroGPU animator: fn node + @spaces.GPU + LTX-Video

Browse files
Files changed (1) hide show
  1. workflow.json +44 -0
workflow.json ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "schema_version": "2",
3
+ "name": "ZeroGPU Animator",
4
+ "references": [
5
+ {
6
+ "id": "ref_image", "role": "reference", "label": "Image", "asset_type": "image",
7
+ "inputs": [{ "id": "in", "label": "Image", "type": "image" }],
8
+ "outputs": [{ "id": "out", "label": "Image", "type": "image" }],
9
+ "data": { "out": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" },
10
+ "x": 40, "y": 60, "width": 240, "height": 200
11
+ },
12
+ {
13
+ "id": "ref_prompt", "role": "reference", "label": "Motion prompt", "asset_type": "text",
14
+ "inputs": [{ "id": "in", "label": "Motion prompt", "type": "text" }],
15
+ "outputs": [{ "id": "out", "label": "Motion prompt", "type": "text" }],
16
+ "data": { "out": "the man plays the guitar, gentle camera push-in, cinematic" },
17
+ "x": 40, "y": 320, "width": 240, "height": 110
18
+ }
19
+ ],
20
+ "operators": [
21
+ {
22
+ "id": "op_animate", "role": "operator", "kind": "fn", "fn": "animate", "label": "animate (ZeroGPU)",
23
+ "inputs": [
24
+ { "id": "in_image", "label": "image", "type": "image", "required": true },
25
+ { "id": "in_prompt", "label": "prompt", "type": "text", "required": true }
26
+ ],
27
+ "outputs": [{ "id": "out_0", "label": "video", "type": "video" }],
28
+ "data": {}, "x": 360, "y": 150, "width": 240, "height": 140
29
+ }
30
+ ],
31
+ "subjects": [
32
+ {
33
+ "id": "sub_video", "role": "subject", "label": "Video", "asset_type": "video",
34
+ "inputs": [{ "id": "in", "label": "Video", "type": "video" }],
35
+ "outputs": [{ "id": "out", "label": "Video", "type": "video" }],
36
+ "data": {}, "x": 680, "y": 120, "width": 280, "height": 240
37
+ }
38
+ ],
39
+ "edges": [
40
+ { "id": "e1", "from_node_id": "ref_image", "from_port_id": "out", "to_node_id": "op_animate", "to_port_id": "in_image", "type": "image" },
41
+ { "id": "e2", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_animate", "to_port_id": "in_prompt", "type": "text" },
42
+ { "id": "e3", "from_node_id": "op_animate", "from_port_id": "out_0", "to_node_id": "sub_video", "to_port_id": "in", "type": "video" }
43
+ ]
44
+ }