ComfyPilotComfyPilot
工作流 / 视频 / Wan2.7:视频编辑
Wan2.7:视频编辑

Wan2.7:视频编辑

Wan2.7: Video Edit

上传视频及对应图像,使用Wan2.7模型编辑并替换角色或场景。

视频 5 个节点 3 个输入 52 次使用 ComfyUI ≥ 0.18.4 ComfyUI 5 KB

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

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

节点构成

LoadImage × 2
Wan2VideoEditApi × 1
SaveVideo × 1
LoadVideo × 1

官方标注的模型

Wan2.7

工作流 JSON

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

1{
2 "id": "bfbb2a8b-0e2e-41c9-9b70-f43711971440",
3 "revision": 0,
4 "last_node_id": 5,
5 "last_link_id": 4,
6 "nodes": [
7 {
8 "id": 3,
9 "type": "LoadImage",
10 "pos": [
11 -2323.070293531183,
12 1476.2791138867647
13 ],
14 "size": [
15 282.798828125,
16 314
17 ],
18 "flags": [],
19 "order": 0,
20 "mode": 0,
21 "inputs": [],
22 "outputs": [
23 {
24 "name": "IMAGE",
25 "type": "IMAGE",
26 "links": [
27 2
28 ]
29 },
30 {
31 "name": "MASK",
32 "type": "MASK",
33 "links": null
34 }
35 ],
36 "properties": {
37 "Node name for S&R": "LoadImage"
38 },
39 "widgets_values": [
40 "funny_dog.png",
41 "image"
42 ]
43 },
44 {
45 "id": 2,
46 "type": "LoadImage",
47 "pos": [
48 -2640.803813851778,
49 1471.8727403483208
50 ],
51 "size": [
52 282.798828125,
53 314
54 ],
55 "flags": [],
56 "order": 1,
57 "mode": 0,
58 "inputs": [],
59 "outputs": [
60 {
61 "name": "IMAGE",
62 "type": "IMAGE",
63 "links": [
64 4
65 ]
66 },
67 {
68 "name": "MASK",
69 "type": "MASK",
70 "links": null
71 }
72 ],
73 "properties": {
74 "Node name for S&R": "LoadImage"
75 },
76 "widgets_values": [
77 "old_bear.png",
78 "image"
79 ]
80 },
81 {
82 "id": 4,
83 "type": "Wan2VideoEditApi",
84 "pos": [
85 -1999.069539554537,
86 1479.318508328415
87 ],
88 "size": [
89 400,
90 340
91 ],
92 "flags": [],
93 "order": 3,
94 "mode": 0,
95 "inputs": [
96 {
97 "name": "video",
98 "type": "VIDEO",
99 "link": 1
100 },
101 {
102 "label": "image1",
103 "name": "model.reference_images.image1",
104 "shape": 7,
105 "type": "IMAGE",
106 "link": 2
107 },
108 {
109 "label": "image2",
110 "name": "model.reference_images.image2",
111 "shape": 7,
112 "type": "IMAGE",
113 "link": 4
114 },
115 {
116 "label": "image3",
117 "name": "model.reference_images.image3",
118 "shape": 7,
119 "type": "IMAGE",
120 "link": null
121 }
122 ],
123 "outputs": [
124 {
125 "name": "VIDEO",
126 "type": "VIDEO",
127 "links": [
128 3
129 ]
130 }
131 ],
132 "properties": {
133 "Node name for S&R": "Wan2VideoEditApi"
134 },
135 "widgets_values": [
136 "wan2.7-videoedit",
137 "Replace the two elderly men with the bear from image1 and the dog from image2. The bear sits on the left side of the chess table, the dog sits on the right. Both retain the original chess-playing posture and movements. Keep the wooden table, chess pieces, warm lamp lighting, and cozy room atmosphere unchanged. Add ambient sounds of a crackling fireplace and the soft click of chess pieces being placed.\n",
138 "720P",
139 "16:9",
140 "auto",
141 391482874,
142 "randomize",
143 "auto",
144 false
145 ],
146 "color": "#432",
147 "bgcolor": "#653"
148 },
149 {
150 "id": 5,
151 "type": "SaveVideo",
152 "pos": [
153 -1569.843495207217,
154 1484.2518581753768
155 ],
156 "size": [
157 270,
158 249.875
159 ],
160 "flags": [],
161 "order": 4,
162 "mode": 0,
163 "inputs": [
164 {
165 "name": "video",
166 "type": "VIDEO",
167 "link": 3
168 }
169 ],
170 "outputs": [],
171 "properties": [],
172 "widgets_values": [
173 "video/wan2.7_video_edit",
174 "auto",
175 "auto"
176 ]
177 },
178 {
179 "id": 1,
180 "type": "LoadVideo",
181 "pos": [
182 -3064.58657598767,
183 1472.710387375078
184 ],
185 "size": [
186 386.798828125,
187 329.24353180764433
188 ],
189 "flags": [],
190 "order": 2,
191 "mode": 0,
192 "inputs": [],
193 "outputs": [
194 {
195 "name": "VIDEO",
196 "type": "VIDEO",
197 "links": [
198 1
199 ]
200 }
201 ],
202 "properties": {
203 "Node name for S&R": "LoadVideo"
204 },
205 "widgets_values": [
206 "play_chess.mp4",
207 "image"
208 ]
209 }
210 ],
211 "links": [
212 [
213 1,
214 1,
215 0,
216 4,
217 0,
218 "VIDEO"
219 ],
220 [
221 2,
222 3,
223 0,
224 4,
225 1,
226 "IMAGE"
227 ],
228 [
229 3,
230 4,
231 0,
232 5,
233 0,
234 "VIDEO"
235 ],
236 [
237 4,
238 2,
239 0,
240 4,
241 2,
242 "IMAGE"
243 ]
244 ],
245 "groups": [],
246 "config": [],
247 "extra": {
248 "ds": {
249 "scale": 0.6047705485020495,
250 "offset": [
251 3488.057259131978,
252 -927.5052359076906
253 ]
254 },
255 "frontendVersion": "1.43.11"
256 },
257 "version": 0.4
258}