-
Notifications
You must be signed in to change notification settings - Fork 13
/
pipeline.json
236 lines (236 loc) · 6.35 KB
/
pipeline.json
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
{
"pipeline": {
"view-images-u0hlfyfh3had": {
"information": {
"id": "view-images",
"name": "View Images",
"description": "Generates an HTML file with a unique name and returns the file name.",
"system_versions": ["0.1"],
"block_version": "block version number",
"block_source": "core/blocks/view-images",
"block_type": "view"
},
"inputs": {
"image_paths_view": {
"type": "List[file]",
"connections": [
{
"block": "background-removal-wzqnnexvgx8m",
"variable": "output_path"
}
]
}
},
"outputs": {
"html": {
"type": "file",
"connections": []
}
},
"action": {
"container": {
"image": "view-images",
"version": "view-images-u0hlfyfh3had",
"command_line": ["python", "-u", "entrypoint.py"]
}
},
"views": {
"node": {
"active": "True or False",
"title_bar": {
"background_color": "#D55908"
},
"preview": {
"active": "true"
},
"html": "",
"pos_x": "1438",
"pos_y": "211",
"pos_z": "999, this is the z-index for 2D canvas",
"order": {
"input": ["image_paths_view"],
"output": ["html"]
}
},
"mode": "modal"
},
"events": {}
},
"file-wxbck81be764": {
"information": {
"id": "file",
"name": "File",
"description": "File parameter input.",
"system_versions": ["0.1"],
"block_version": "block version number",
"block_source": "core/blocks",
"block_type": "compute"
},
"inputs": {},
"outputs": {
"path": {
"type": "file",
"connections": [
{
"block": "background-removal-wzqnnexvgx8m",
"variable": "input_image_path"
},
{
"block": "view-images-7szi9ayg49zv",
"variable": "image_paths_view"
}
]
}
},
"action": {
"container": {
"image": "",
"version": "",
"command_line": []
},
"parameters": {
"path": {
"value": "pipeline-l5jo9m0zf57r/01907459-757a-7a47-9b89-cb68f4cac189/1618777237282.jfif",
"type": "blob"
}
}
},
"views": {
"node": {
"active": "True or False",
"title_bar": {
"background_color": "#909090"
},
"preview": {},
"html": "<input type='file' name='fileInput' parameters-file/>",
"pos_x": "366",
"pos_y": "257",
"pos_z": "999, this is the z-index for 2D canvas",
"order": {
"input": [],
"output": ["path"]
}
}
},
"events": {}
},
"background-removal-wzqnnexvgx8m": {
"information": {
"id": "background-removal",
"name": "Image Background Removal",
"description": "This function takes the path to an image file, removes its background, and saves the resulting image to a new file.\nThe function returns the path to the output image.\n\nParameters:\n- input_image_path (str): Path to the input image file.\n\nReturns:\n- dict: A dictionary containing the path to the output image with the key 'output_path'.",
"system_versions": ["0.1"],
"block_version": "block version number",
"block_source": "core/blocks/background-removal",
"block_type": "compute"
},
"inputs": {
"input_image_path": {
"type": "Any",
"connections": [
{
"block": "file-wxbck81be764",
"variable": "path"
}
]
}
},
"outputs": {
"output_path": {
"type": "Any",
"connections": [
{
"block": "view-images-u0hlfyfh3had",
"variable": "image_paths_view"
}
]
}
},
"action": {
"container": {
"image": "background-removal",
"version": "background-removal-wzqnnexvgx8m",
"command_line": ["python", "-u", "entrypoint.py"]
}
},
"views": {
"node": {
"active": "True or False",
"title_bar": {},
"preview": {},
"html": "",
"pos_x": "883",
"pos_y": "257",
"pos_z": "999",
"behavior": "modal",
"order": {
"input": ["input_image_path"],
"output": ["output_path"]
}
}
},
"events": {}
},
"view-images-7szi9ayg49zv": {
"information": {
"id": "view-images",
"name": "View Images",
"description": "Generates an HTML file with a unique name and returns the file name.",
"system_versions": ["0.1"],
"block_version": "block version number",
"block_source": "core/blocks/view-images",
"block_type": "view"
},
"inputs": {
"image_paths_view": {
"type": "List[file]",
"connections": [
{
"block": "file-wxbck81be764",
"variable": "path"
}
]
}
},
"outputs": {
"html": {
"type": "file",
"connections": []
}
},
"action": {
"container": {
"image": "view-images",
"version": "view-images-7szi9ayg49zv",
"command_line": ["python", "-u", "entrypoint.py"]
}
},
"views": {
"node": {
"active": "True or False",
"title_bar": {
"background_color": "#D55908"
},
"preview": {
"active": "true"
},
"html": "",
"pos_x": "839",
"pos_y": "76",
"pos_z": "999, this is the z-index for 2D canvas",
"order": {
"input": ["image_paths_view"],
"output": ["html"]
}
},
"mode": "modal"
},
"events": {}
}
},
"sink": "",
"build": "",
"name": "Image Background Removal Demo",
"id": "pipeline-l5jo9m0zf57r",
"description": "Removes the background of an image."
}