ComfyPilotComfyPilot
工作流 / 视频工具 / 线稿图: LineArt Preprocessor
线稿图: LineArt Preprocessor

线稿图: LineArt Preprocessor

Lineart Map: LineArt Preprocessor

将视频转换为线稿/Canny边缘检测,用于控制处理器

视频工具 5 个节点 1 个输入 12 次使用 ComfyUI ≥ 0.0.1 ComfyUI 8 KB

下载工作流 JSON 查看官方来源

下载后把文件拖进 ComfyUI 窗口即可打开。

节点构成

VHS_VideoInfo × 1
VHS_VideoCombine × 1
LineArtPreprocessor × 1
VHS_LoadVideo × 1
MarkdownNote × 1

官方标注的模型

None

工作流 JSON

和上面「下载工作流 JSON」是同一份文件。

1{
2 "id": "6602cff5-95cc-4f14-ad0f-65f54e3690c7",
3 "revision": 0,
4 "last_node_id": 9,
5 "last_link_id": 10,
6 "nodes": [
7 {
8 "id": 4,
9 "type": "VHS_VideoInfo",
10 "pos": [
11 1023.363014394668,
12 -1893.7177169531817
13 ],
14 "size": [
15 234.931640625,
16 206
17 ],
18 "flags": [],
19 "order": 3,
20 "mode": 0,
21 "inputs": [
22 {
23 "name": "video_info",
24 "type": "VHS_VIDEOINFO",
25 "link": 3
26 }
27 ],
28 "outputs": [
29 {
30 "name": "source_fps🟨",
31 "type": "FLOAT",
32 "links": [
33 4
34 ]
35 },
36 {
37 "name": "source_frame_count🟨",
38 "type": "INT",
39 "links": null
40 },
41 {
42 "name": "source_duration🟨",
43 "type": "FLOAT",
44 "links": null
45 },
46 {
47 "name": "source_width🟨",
48 "type": "INT",
49 "links": null
50 },
51 {
52 "name": "source_height🟨",
53 "type": "INT",
54 "links": null
55 },
56 {
57 "name": "loaded_fps🟦",
58 "type": "FLOAT",
59 "links": null
60 },
61 {
62 "name": "loaded_frame_count🟦",
63 "type": "INT",
64 "links": null
65 },
66 {
67 "name": "loaded_duration🟦",
68 "type": "FLOAT",
69 "links": null
70 },
71 {
72 "name": "loaded_width🟦",
73 "type": "INT",
74 "links": null
75 },
76 {
77 "name": "loaded_height🟦",
78 "type": "INT",
79 "links": null
80 }
81 ],
82 "properties": {
83 "cnr_id": "comfyui-videohelpersuite",
84 "ver": "1.7.7",
85 "Node name for S&R": "VHS_VideoInfo"
86 },
87 "widgets_values": []
88 },
89 {
90 "id": 3,
91 "type": "VHS_VideoCombine",
92 "pos": [
93 1315.3837276433433,
94 -2036.5468910511777
95 ],
96 "size": [
97 225.3349609375,
98 334
99 ],
100 "flags": [],
101 "order": 4,
102 "mode": 0,
103 "inputs": [
104 {
105 "name": "images",
106 "type": "IMAGE",
107 "link": 2
108 },
109 {
110 "name": "audio",
111 "shape": 7,
112 "type": "AUDIO",
113 "link": null
114 },
115 {
116 "name": "meta_batch",
117 "shape": 7,
118 "type": "VHS_BatchManager",
119 "link": null
120 },
121 {
122 "name": "vae",
123 "shape": 7,
124 "type": "VAE",
125 "link": null
126 },
127 {
128 "name": "frame_rate",
129 "type": "FLOAT",
130 "widget": {
131 "name": "frame_rate"
132 },
133 "link": 4
134 }
135 ],
136 "outputs": [
137 {
138 "name": "Filenames",
139 "type": "VHS_FILENAMES",
140 "links": null
141 }
142 ],
143 "properties": {
144 "cnr_id": "comfyui-videohelpersuite",
145 "ver": "1.7.7",
146 "Node name for S&R": "VHS_VideoCombine"
147 },
148 "widgets_values": {
149 "frame_rate": 24,
150 "loop_count": 0,
151 "filename_prefix": "AnimateDiff",
152 "format": "video/h264-mp4",
153 "pix_fmt": "yuv420p",
154 "crf": 12,
155 "save_metadata": true,
156 "trim_to_audio": false,
157 "pingpong": false,
158 "save_output": true,
159 "videopreview": {
160 "hidden": false,
161 "paused": false,
162 "params": {
163 "filename": "4d864bb16acd21afbf24cd8fcbb974a8f569578d103841e81f99754e3b1c4042.mp4",
164 "format": "video/h264-mp4",
165 "frame_rate": 24,
166 "fullpath": "",
167 "subfolder": "",
168 "type": "output",
169 "workflow": "AnimateDiff_00001.png"
170 }
171 }
172 }
173 },
174 {
175 "id": 1,
176 "type": "LineArtPreprocessor",
177 "pos": [
178 1003.3837276433431,
179 -2036.5468910511777
180 ],
181 "size": [
182 270,
183 82
184 ],
185 "flags": [],
186 "order": 2,
187 "mode": 0,
188 "inputs": [
189 {
190 "name": "image",
191 "type": "IMAGE",
192 "link": 10
193 }
194 ],
195 "outputs": [
196 {
197 "name": "IMAGE",
198 "type": "IMAGE",
199 "links": [
200 2
201 ]
202 }
203 ],
204 "properties": {
205 "cnr_id": "comfyui_controlnet_aux",
206 "ver": "1.1.3",
207 "Node name for S&R": "LineArtPreprocessor"
208 },
209 "widgets_values": [
210 "disable",
211 1024
212 ]
213 },
214 {
215 "id": 2,
216 "type": "VHS_LoadVideo",
217 "pos": [
218 700.9530635808431,
219 -2036.5468910511777
220 ],
221 "size": [
222 260.4306640625,
223 564.4306640625
224 ],
225 "flags": [],
226 "order": 0,
227 "mode": 0,
228 "inputs": [
229 {
230 "name": "meta_batch",
231 "shape": 7,
232 "type": "VHS_BatchManager",
233 "link": null
234 },
235 {
236 "name": "vae",
237 "shape": 7,
238 "type": "VAE",
239 "link": null
240 }
241 ],
242 "outputs": [
243 {
244 "name": "IMAGE",
245 "type": "IMAGE",
246 "links": [
247 10
248 ]
249 },
250 {
251 "name": "frame_count",
252 "type": "INT",
253 "links": null
254 },
255 {
256 "name": "audio",
257 "type": "AUDIO",
258 "links": null
259 },
260 {
261 "name": "video_info",
262 "type": "VHS_VIDEOINFO",
263 "links": [
264 3
265 ]
266 }
267 ],
268 "properties": {
269 "cnr_id": "comfyui-videohelpersuite",
270 "ver": "1.7.7",
271 "Node name for S&R": "VHS_LoadVideo"
272 },
273 "widgets_values": {
274 "video": "utility-lineart-video-input.mp4",
275 "force_rate": 0,
276 "custom_width": 0,
277 "custom_height": 0,
278 "frame_load_cap": 48,
279 "skip_first_frames": 0,
280 "select_every_nth": 1,
281 "format": "AnimateDiff",
282 "videopreview": {
283 "hidden": false,
284 "paused": false,
285 "params": {
286 "filename": "utility-lineart-video-input.mp4",
287 "type": "input",
288 "format": "video/mp4",
289 "force_rate": 0,
290 "custom_width": 0,
291 "custom_height": 0,
292 "frame_load_cap": 48,
293 "skip_first_frames": 0,
294 "select_every_nth": 1
295 }
296 }
297 }
298 },
299 {
300 "id": 9,
301 "type": "MarkdownNote",
302 "pos": [
303 270,
304 -2010
305 ],
306 "size": [
307 340,
308 230
309 ],
310 "flags": [],
311 "order": 1,
312 "mode": 0,
313 "inputs": [],
314 "outputs": [],
315 "title": "For Local Users",
316 "properties": [],
317 "widgets_values": [
318 "## Custom Nodes\n\n- [comfyui_controlnet_aux](https://github.com/Fannovel16/comfyui_controlnet_aux)\n- [Kosinkadink/ComfyUI-VideoHelperSuite](https://github.com/Kosinkadink/ComfyUI-VideoHelperSuite)\n\n## Report Issue\n\nNote: Please update ComfyUI first ([guide](https://docs.comfy.org/installation/update_comfyui)) and prepare required models. Desktop/Cloud will be updated after the stable release; nightly-supported models may not be included yet, please wait for the next stable release.\n\n- Cannot run / runtime errors: [ComfyUI/issues](https://github.com/Comfy-Org/ComfyUI/issues)\n- UI / frontend issues: [ComfyUI_frontend/issues](https://github.com/Comfy-Org/ComfyUI_frontend/issues)\n- Workflow issues: [workflow_templates/issues](https://github.com/Comfy-Org/workflow_templates/issues)\n"
319 ],
320 "color": "#222",
321 "bgcolor": "#000"
322 }
323 ],
324 "links": [
325 [
326 2,
327 1,
328 0,
329 3,
330 0,
331 "IMAGE"
332 ],
333 [
334 3,
335 2,
336 3,
337 4,
338 0,
339 "VHS_VIDEOINFO"
340 ],
341 [
342 4,
343 4,
344 0,
345 3,
346 4,
347 "FLOAT"
348 ],
349 [
350 10,
351 2,
352 0,
353 1,
354 0,
355 "IMAGE"
356 ]
357 ],
358 "groups": [],
359 "config": [],
360 "extra": {
361 "ds": {
362 "scale": 0.8165919226228845,
363 "offset": [
364 6.55550573053657,
365 2448.4599072709534
366 ]
367 },
368 "frontendVersion": "1.36.13",
369 "workflowRendererVersion": "LG",
370 "VHS_latentpreview": false,
371 "VHS_latentpreviewrate": 0,
372 "VHS_MetadataImage": true,
373 "VHS_KeepIntermediate": true
374 },
375 "version": 0.4
376}