File size: 3,995 Bytes
9e5a55a
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
{
    "schema_version": "2",
    "name": "Image Editing Pipeline",
    "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/spaces/ysharma/gr-workflow-image-editor/resolve/main/sample.png"
            },
            "x": 40,
            "y": 60,
            "width": 240,
            "height": 136
        },
        {
            "id": "ref_prompt",
            "role": "reference",
            "label": "Edit instruction",
            "asset_type": "text",
            "inputs": [
                {
                    "id": "in",
                    "label": "Edit instruction",
                    "type": "text"
                }
            ],
            "outputs": [
                {
                    "id": "out",
                    "label": "Edit instruction",
                    "type": "text"
                }
            ],
            "data": {
                "out": "turn it into a snowy winter scene with the dog wearing a red scarf"
            },
            "x": 40,
            "y": 320,
            "width": 240,
            "height": 163
        }
    ],
    "operators": [
        {
            "id": "op_edit",
            "role": "operator",
            "kind": "model",
            "model_id": "Qwen/Qwen-Image-Edit",
            "pipeline_tag": "image-to-image",
            "endpoint": "image_to_image",
            "provider": "auto",
            "label": "Qwen-Image-Edit",
            "inputs": [
                {
                    "id": "image",
                    "label": "Image",
                    "type": "image"
                },
                {
                    "id": "prompt",
                    "label": "Prompt",
                    "type": "text"
                }
            ],
            "outputs": [
                {
                    "id": "out_0",
                    "label": "Image",
                    "type": "image",
                    "output_index": 0
                }
            ],
            "data": {},
            "x": 360,
            "y": 150,
            "width": 240,
            "height": 140
        }
    ],
    "subjects": [
        {
            "id": "sub_out",
            "role": "subject",
            "label": "Edited image",
            "asset_type": "image",
            "inputs": [
                {
                    "id": "in",
                    "label": "Edited image",
                    "type": "image"
                }
            ],
            "outputs": [
                {
                    "id": "out",
                    "label": "Edited image",
                    "type": "image"
                }
            ],
            "data": {},
            "x": 680,
            "y": 120,
            "width": 260,
            "height": 107
        }
    ],
    "edges": [
        {
            "id": "e1",
            "from_node_id": "ref_image",
            "from_port_id": "out",
            "to_node_id": "op_edit",
            "to_port_id": "image",
            "type": "image"
        },
        {
            "id": "e2",
            "from_node_id": "ref_prompt",
            "from_port_id": "out",
            "to_node_id": "op_edit",
            "to_port_id": "prompt",
            "type": "text"
        },
        {
            "id": "e3",
            "from_node_id": "op_edit",
            "from_port_id": "out_0",
            "to_node_id": "sub_out",
            "to_port_id": "in",
            "type": "image"
        }
    ]
}