工作流 /
视频 /
HeyGen: 视频头像
HeyGen: 视频头像
HeyGen: Avatar Video
通过文本提示词或上传的图像,利用HeyGen的虚拟形象生成技术创建AI虚拟形象视频,输出单个说话人视频。您可以保存虚拟形象ID以便在未来的视频中重复使用。适用于个性化数字主持人、社交媒体内容创作以及无需录制真人演员的多语言视频制作。
视频
9 个节点 11 次使用 ComfyUI ≥ 0.28.1 ComfyUI 8 KB
节点构成
PreviewAny
× 2
HeyGenCreateAvatarNode
× 1
HeyGenAvatarVideoNode
× 1
SaveText
× 1
StringConcatenate
× 1
SaveVideo
× 1
MarkdownNote
× 1
ColorToRGBInt
× 1
官方标注的模型
HeyGen
工作流 JSON
和上面「下载工作流 JSON」是同一份文件。
1{
2 "id": "a9ce14e1-ff37-42fd-bf3b-a8203a7103e4",
3 "revision": 0,
4 "last_node_id": 25,
5 "last_link_id": 27,
6 "nodes": [
7 {
8 "id": 16,
9 "type": "HeyGenCreateAvatarNode",
10 "pos": [
11 -567.8389832742362,
12 391.3447007424943
13 ],
14 "size": [
15 400,
16 200
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 4,
21 "inputs": [
22 {
23 "label": "ref_image_1",
24 "name": "source.reference_images.ref_image_1",
25 "shape": 7,
26 "type": "IMAGE",
27 "link": null
28 }
29 ],
30 "outputs": [
31 {
32 "name": "avatar_id",
33 "type": "STRING",
34 "links": [
35 23
36 ]
37 },
38 {
39 "name": "preview",
40 "type": "IMAGE",
41 "links": null
42 }
43 ],
44 "properties": {
45 "cnr_id": "comfy-core",
46 "ver": "0.28.0",
47 "Node name for S&R": "HeyGenCreateAvatarNode"
48 },
49 "widgets_values": [
50 "prompt",
51 ""
52 ],
53 "color": "#432",
54 "bgcolor": "#653"
55 },
56 {
57 "id": 17,
58 "type": "HeyGenAvatarVideoNode",
59 "pos": [
60 502.0422486670583,
61 347.93748123861235
62 ],
63 "size": [
64 400,
65 544
66 ],
67 "flags": [],
68 "order": 1,
69 "mode": 0,
70 "inputs": [],
71 "outputs": [
72 {
73 "name": "VIDEO",
74 "type": "VIDEO",
75 "links": [
76 25
77 ]
78 }
79 ],
80 "properties": {
81 "cnr_id": "comfy-core",
82 "ver": "0.28.0",
83 "Node name for S&R": "HeyGenAvatarVideoNode"
84 },
85 "widgets_values": [
86 "auto",
87 "Annie Lounge Standing Side",
88 "script",
89 "This is a demo showing how to generate videos using preset avatars. You can also create your own custom avatar.",
90 "(avatar's default voice)",
91 "",
92 1,
93 "",
94 "720p",
95 "auto",
96 "",
97 2028471128,
98 "randomize"
99 ],
100 "color": "#432",
101 "bgcolor": "#653"
102 },
103 {
104 "id": 18,
105 "type": "SaveText",
106 "pos": [
107 157.45256171931618,
108 603.6708249501953
109 ],
110 "size": [
111 270,
112 220
113 ],
114 "flags": [],
115 "order": 8,
116 "mode": 4,
117 "inputs": [
118 {
119 "name": "text",
120 "type": "STRING",
121 "link": 22
122 }
123 ],
124 "outputs": [
125 {
126 "name": "text",
127 "type": "STRING",
128 "links": null
129 }
130 ],
131 "properties": {
132 "cnr_id": "comfy-core",
133 "ver": "0.28.0",
134 "Node name for S&R": "SaveText"
135 },
136 "widgets_values": [
137 "HeyGen/avatar_id",
138 "txt"
139 ]
140 },
141 {
142 "id": 19,
143 "type": "StringConcatenate",
144 "pos": [
145 -134.3630960008337,
146 599.8543917562325
147 ],
148 "size": [
149 233.28125,
150 220
151 ],
152 "flags": [],
153 "order": 7,
154 "mode": 4,
155 "inputs": [
156 {
157 "name": "string_b",
158 "type": "STRING",
159 "widget": {
160 "name": "string_b"
161 },
162 "link": 24
163 }
164 ],
165 "outputs": [
166 {
167 "name": "STRING",
168 "type": "STRING",
169 "links": [
170 22
171 ]
172 }
173 ],
174 "properties": {
175 "cnr_id": "comfy-core",
176 "ver": "0.28.0",
177 "Node name for S&R": "StringConcatenate"
178 },
179 "widgets_values": [
180 "HeyGen Avatar ID:",
181 "",
182 ""
183 ]
184 },
185 {
186 "id": 20,
187 "type": "PreviewAny",
188 "pos": [
189 -136.57904580476713,
190 388.2264973593295
191 ],
192 "size": [
193 225,
194 152
195 ],
196 "flags": [],
197 "order": 4,
198 "mode": 4,
199 "inputs": [
200 {
201 "name": "source",
202 "type": "*",
203 "link": 23
204 }
205 ],
206 "outputs": [
207 {
208 "name": "STRING",
209 "type": "STRING",
210 "links": [
211 24
212 ]
213 }
214 ],
215 "properties": {
216 "cnr_id": "comfy-core",
217 "ver": "0.28.0",
218 "Node name for S&R": "PreviewAny"
219 },
220 "widgets_values": []
221 },
222 {
223 "id": 21,
224 "type": "SaveVideo",
225 "pos": [
226 942.6909579858429,
227 346.6916164316733
228 ],
229 "size": [
230 406.578125,
231 524.359375
232 ],
233 "flags": [],
234 "order": 5,
235 "mode": 0,
236 "inputs": [
237 {
238 "name": "video",
239 "type": "VIDEO",
240 "link": 25
241 }
242 ],
243 "outputs": [
244 {
245 "name": "video",
246 "type": "VIDEO",
247 "links": null
248 }
249 ],
250 "properties": {
251 "cnr_id": "comfy-core",
252 "ver": "0.28.0"
253 },
254 "widgets_values": [
255 "video/HeyGen_avatar",
256 "auto",
257 "auto"
258 ]
259 },
260 {
261 "id": 23,
262 "type": "MarkdownNote",
263 "pos": [
264 -558.6536439503,
265 657.4440213780166
266 ],
267 "size": [
268 348.90625,
269 137.078125
270 ],
271 "flags": [],
272 "order": 2,
273 "mode": 0,
274 "inputs": [],
275 "outputs": [],
276 "title": "Create Avatar",
277 "properties": [],
278 "widgets_values": [
279 "You can use prompt or input image to create your own avatar, please save the avatar ID for reuse"
280 ],
281 "color": "#222",
282 "bgcolor": "#000"
283 },
284 {
285 "id": 24,
286 "type": "ColorToRGBInt",
287 "pos": [
288 -94.99976475636709,
289 928.9640681414954
290 ],
291 "size": [
292 270,
293 132
294 ],
295 "flags": [],
296 "order": 3,
297 "mode": 0,
298 "inputs": [],
299 "outputs": [
300 {
301 "name": "rgb_int",
302 "type": "INT",
303 "links": null
304 },
305 {
306 "name": "hex",
307 "type": "COLOR",
308 "links": [
309 26
310 ]
311 },
312 {
313 "name": "alpha",
314 "type": "FLOAT",
315 "links": null
316 }
317 ],
318 "properties": {
319 "cnr_id": "comfy-core",
320 "ver": "0.28.0",
321 "Node name for S&R": "ColorToRGBInt"
322 },
323 "widgets_values": [
324 "#ffffff"
325 ]
326 },
327 {
328 "id": 25,
329 "type": "PreviewAny",
330 "pos": [
331 199.50004880993117,
332 930.0510969280014
333 ],
334 "size": [
335 225,
336 152
337 ],
338 "flags": [],
339 "order": 6,
340 "mode": 0,
341 "inputs": [
342 {
343 "name": "source",
344 "type": "*",
345 "link": 26
346 }
347 ],
348 "outputs": [
349 {
350 "name": "STRING",
351 "type": "STRING",
352 "links": []
353 }
354 ],
355 "properties": {
356 "cnr_id": "comfy-core",
357 "ver": "0.28.0",
358 "Node name for S&R": "PreviewAny"
359 },
360 "widgets_values": []
361 }
362 ],
363 "links": [
364 [
365 22,
366 19,
367 0,
368 18,
369 0,
370 "STRING"
371 ],
372 [
373 23,
374 16,
375 0,
376 20,
377 0,
378 "STRING"
379 ],
380 [
381 24,
382 20,
383 0,
384 19,
385 0,
386 "STRING"
387 ],
388 [
389 25,
390 17,
391 0,
392 21,
393 0,
394 "VIDEO"
395 ],
396 [
397 26,
398 24,
399 1,
400 25,
401 0,
402 "COLOR"
403 ]
404 ],
405 "groups": [
406 {
407 "id": 1,
408 "title": "Select and Ctrl-B to enable",
409 "bounding": [
410 -577.8389832742362,
411 318.2264973593295,
412 1015.2915449935524,
413 515.4443275908658
414 ],
415 "color": "#3f789e",
416 "flags": []
417 },
418 {
419 "id": 2,
420 "title": "Custom background Color",
421 "bounding": [
422 -104.99976475636709,
423 858.9640681414954,
424 539.4998135662985,
425 233.08702878650604
426 ],
427 "color": "#3f789e",
428 "flags": []
429 }
430 ],
431 "config": [],
432 "extra": {
433 "ds": {
434 "scale": 1.1899385445945614,
435 "offset": [
436 -328.19040950200224,
437 -211.16803516673343
438 ]
439 },
440 "frontendVersion": "1.45.21"
441 },
442 "version": 0.4
443}