File size: 2,145 Bytes
4fadaa8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
{
  "schema_version": "2",
  "name": "ZeroGPU Animator",
  "references": [
    {
      "id": "ref_image", "role": "reference", "label": "Image", "asset_type": "image",
      "inputs": [{ "id": "in", "label": "Image", "type": "image" }],
      "outputs": [{ "id": "out", "label": "Image", "type": "image" }],
      "data": { "out": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/diffusers/guitar-man.png" },
      "x": 40, "y": 60, "width": 240, "height": 200
    },
    {
      "id": "ref_prompt", "role": "reference", "label": "Motion prompt", "asset_type": "text",
      "inputs": [{ "id": "in", "label": "Motion prompt", "type": "text" }],
      "outputs": [{ "id": "out", "label": "Motion prompt", "type": "text" }],
      "data": { "out": "the man plays the guitar, gentle camera push-in, cinematic" },
      "x": 40, "y": 320, "width": 240, "height": 110
    }
  ],
  "operators": [
    {
      "id": "op_animate", "role": "operator", "kind": "fn", "fn": "animate", "label": "animate (ZeroGPU)",
      "inputs": [
        { "id": "in_image", "label": "image", "type": "image", "required": true },
        { "id": "in_prompt", "label": "prompt", "type": "text", "required": true }
      ],
      "outputs": [{ "id": "out_0", "label": "video", "type": "video" }],
      "data": {}, "x": 360, "y": 150, "width": 240, "height": 140
    }
  ],
  "subjects": [
    {
      "id": "sub_video", "role": "subject", "label": "Video", "asset_type": "video",
      "inputs": [{ "id": "in", "label": "Video", "type": "video" }],
      "outputs": [{ "id": "out", "label": "Video", "type": "video" }],
      "data": {}, "x": 680, "y": 120, "width": 280, "height": 240
    }
  ],
  "edges": [
    { "id": "e1", "from_node_id": "ref_image", "from_port_id": "out", "to_node_id": "op_animate", "to_port_id": "in_image", "type": "image" },
    { "id": "e2", "from_node_id": "ref_prompt", "from_port_id": "out", "to_node_id": "op_animate", "to_port_id": "in_prompt", "type": "text" },
    { "id": "e3", "from_node_id": "op_animate", "from_port_id": "out_0", "to_node_id": "sub_video", "to_port_id": "in", "type": "video" }
  ]
}