aleph65 commited on
Commit
cd715bd
·
verified ·
1 Parent(s): 8a0a40c

Add qwen-edit-turbo-v3 API format (tested: lightning toggle, adaptive/manual output size, output scale, 2-image ref)

Browse files
Files changed (1) hide show
  1. workflows/api/qwen-edit-turbo-v3.json +378 -0
workflows/api/qwen-edit-turbo-v3.json ADDED
@@ -0,0 +1,378 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "1": {
3
+ "class_type": "UNETLoader",
4
+ "inputs": {
5
+ "unet_name": "qwen_image_edit_2511_bf16.safetensors",
6
+ "weight_dtype": "default"
7
+ }
8
+ },
9
+ "10": {
10
+ "_meta": {
11
+ "title": "Steps (lightning)"
12
+ },
13
+ "class_type": "PrimitiveInt",
14
+ "inputs": {
15
+ "value": 4
16
+ }
17
+ },
18
+ "11": {
19
+ "_meta": {
20
+ "title": "CFG (quality)"
21
+ },
22
+ "class_type": "PrimitiveFloat",
23
+ "inputs": {
24
+ "value": 3.0
25
+ }
26
+ },
27
+ "12": {
28
+ "_meta": {
29
+ "title": "CFG (lightning)"
30
+ },
31
+ "class_type": "PrimitiveFloat",
32
+ "inputs": {
33
+ "value": 1.0
34
+ }
35
+ },
36
+ "13": {
37
+ "class_type": "ModelSamplingAuraFlow",
38
+ "inputs": {
39
+ "model": [
40
+ "6",
41
+ 0
42
+ ],
43
+ "shift": 3.1
44
+ }
45
+ },
46
+ "14": {
47
+ "class_type": "CFGNorm",
48
+ "inputs": {
49
+ "model": [
50
+ "13",
51
+ 0
52
+ ],
53
+ "pre_cfg": false,
54
+ "strength": 1
55
+ }
56
+ },
57
+ "2": {
58
+ "_meta": {
59
+ "title": "LoRA: Lightning 4 steps"
60
+ },
61
+ "class_type": "LoraLoaderModelOnly",
62
+ "inputs": {
63
+ "lora_name": "Qwen-Image-Edit-2511-Lightning-4steps-V1.0-bf16.safetensors",
64
+ "model": [
65
+ "1",
66
+ 0
67
+ ],
68
+ "strength_model": 1
69
+ }
70
+ },
71
+ "20": {
72
+ "_meta": {
73
+ "title": "Main Image"
74
+ },
75
+ "class_type": "LoadImage",
76
+ "inputs": {
77
+ "image": "test.jpg"
78
+ }
79
+ },
80
+ "21": {
81
+ "_meta": {
82
+ "title": "Adaptive size (max 2048)"
83
+ },
84
+ "class_type": "QwenEditAdaptiveLongestEdge",
85
+ "inputs": {
86
+ "image": [
87
+ "20",
88
+ 0
89
+ ],
90
+ "max_size": 2048
91
+ }
92
+ },
93
+ "22": {
94
+ "_meta": {
95
+ "title": "Output longest edge (manual)"
96
+ },
97
+ "class_type": "PrimitiveInt",
98
+ "inputs": {
99
+ "value": 1536
100
+ }
101
+ },
102
+ "23": {
103
+ "_meta": {
104
+ "title": "Adaptive output size (match input)"
105
+ },
106
+ "class_type": "PrimitiveBoolean",
107
+ "inputs": {
108
+ "value": true
109
+ }
110
+ },
111
+ "24": {
112
+ "_meta": {
113
+ "title": "Output size switch"
114
+ },
115
+ "class_type": "ComfySwitchNode",
116
+ "inputs": {
117
+ "on_false": [
118
+ "22",
119
+ 0
120
+ ],
121
+ "on_true": [
122
+ "21",
123
+ 0
124
+ ],
125
+ "switch": [
126
+ "23",
127
+ 0
128
+ ]
129
+ }
130
+ },
131
+ "25": {
132
+ "_meta": {
133
+ "title": "Main image config"
134
+ },
135
+ "class_type": "QwenEditConfigPreparer",
136
+ "inputs": {
137
+ "image": [
138
+ "20",
139
+ 0
140
+ ],
141
+ "ref_crop": "pad",
142
+ "ref_longest_edge": [
143
+ "24",
144
+ 0
145
+ ],
146
+ "ref_main_image": true,
147
+ "ref_upscale": "lanczos",
148
+ "to_ref": true,
149
+ "to_vl": true,
150
+ "vl_crop": "center",
151
+ "vl_resize": true,
152
+ "vl_target_size": 384,
153
+ "vl_upscale": "bicubic"
154
+ }
155
+ },
156
+ "3": {
157
+ "class_type": "CLIPLoader",
158
+ "inputs": {
159
+ "clip_name": "qwen_2.5_vl_7b.safetensors",
160
+ "device": "default",
161
+ "type": "qwen_image"
162
+ }
163
+ },
164
+ "30": {
165
+ "_meta": {
166
+ "title": "Qwen Edit Encode (prompt here)"
167
+ },
168
+ "class_type": "TextEncodeQwenImageEditPlusCustom_lrzjason",
169
+ "inputs": {
170
+ "clip": [
171
+ "3",
172
+ 0
173
+ ],
174
+ "configs": [
175
+ "25",
176
+ 0
177
+ ],
178
+ "instruction": "Describe the key features of the input image (color, shape, size, texture, objects, background), then explain how the user's text instruction should alter or modify the image. Generate a new image that meets the user's requirements while maintaining consistency with the original input where appropriate.",
179
+ "prompt": "",
180
+ "return_full_refs_cond": true,
181
+ "vae": [
182
+ "4",
183
+ 0
184
+ ]
185
+ }
186
+ },
187
+ "31": {
188
+ "class_type": "QwenEditOutputExtractor",
189
+ "inputs": {
190
+ "custom_output": [
191
+ "30",
192
+ 2
193
+ ]
194
+ }
195
+ },
196
+ "32": {
197
+ "_meta": {
198
+ "title": "Negative (zeroed)"
199
+ },
200
+ "class_type": "ConditioningZeroOut",
201
+ "inputs": {
202
+ "conditioning": [
203
+ "30",
204
+ 0
205
+ ]
206
+ }
207
+ },
208
+ "33": {
209
+ "class_type": "KSampler",
210
+ "inputs": {
211
+ "cfg": [
212
+ "8",
213
+ 0
214
+ ],
215
+ "denoise": 1,
216
+ "latent_image": [
217
+ "30",
218
+ 1
219
+ ],
220
+ "model": [
221
+ "14",
222
+ 0
223
+ ],
224
+ "negative": [
225
+ "32",
226
+ 0
227
+ ],
228
+ "positive": [
229
+ "30",
230
+ 0
231
+ ],
232
+ "sampler_name": "euler",
233
+ "scheduler": "simple",
234
+ "seed": 42,
235
+ "steps": [
236
+ "7",
237
+ 0
238
+ ]
239
+ }
240
+ },
241
+ "4": {
242
+ "class_type": "VAELoader",
243
+ "inputs": {
244
+ "vae_name": "qwen_image_vae.safetensors"
245
+ }
246
+ },
247
+ "40": {
248
+ "class_type": "VAEDecode",
249
+ "inputs": {
250
+ "samples": [
251
+ "33",
252
+ 0
253
+ ],
254
+ "vae": [
255
+ "4",
256
+ 0
257
+ ]
258
+ }
259
+ },
260
+ "41": {
261
+ "_meta": {
262
+ "title": "Remove padding"
263
+ },
264
+ "class_type": "CropWithPadInfo",
265
+ "inputs": {
266
+ "image": [
267
+ "40",
268
+ 0
269
+ ],
270
+ "pad_info": [
271
+ "31",
272
+ 0
273
+ ]
274
+ }
275
+ },
276
+ "42": {
277
+ "_meta": {
278
+ "title": "Output Scale"
279
+ },
280
+ "class_type": "ImageScaleBy",
281
+ "inputs": {
282
+ "image": [
283
+ "41",
284
+ 0
285
+ ],
286
+ "scale_by": 1.0,
287
+ "upscale_method": "lanczos"
288
+ }
289
+ },
290
+ "43": {
291
+ "class_type": "SaveImage",
292
+ "inputs": {
293
+ "filename_prefix": "qwen-edit-turbo-v3",
294
+ "images": [
295
+ "42",
296
+ 0
297
+ ]
298
+ }
299
+ },
300
+ "5": {
301
+ "_meta": {
302
+ "title": "Lightning Mode (fast)"
303
+ },
304
+ "class_type": "PrimitiveBoolean",
305
+ "inputs": {
306
+ "value": true
307
+ }
308
+ },
309
+ "6": {
310
+ "_meta": {
311
+ "title": "Model switch"
312
+ },
313
+ "class_type": "ComfySwitchNode",
314
+ "inputs": {
315
+ "on_false": [
316
+ "1",
317
+ 0
318
+ ],
319
+ "on_true": [
320
+ "2",
321
+ 0
322
+ ],
323
+ "switch": [
324
+ "5",
325
+ 0
326
+ ]
327
+ }
328
+ },
329
+ "7": {
330
+ "_meta": {
331
+ "title": "Steps switch"
332
+ },
333
+ "class_type": "ComfySwitchNode",
334
+ "inputs": {
335
+ "on_false": [
336
+ "9",
337
+ 0
338
+ ],
339
+ "on_true": [
340
+ "10",
341
+ 0
342
+ ],
343
+ "switch": [
344
+ "5",
345
+ 0
346
+ ]
347
+ }
348
+ },
349
+ "8": {
350
+ "_meta": {
351
+ "title": "CFG switch"
352
+ },
353
+ "class_type": "ComfySwitchNode",
354
+ "inputs": {
355
+ "on_false": [
356
+ "11",
357
+ 0
358
+ ],
359
+ "on_true": [
360
+ "12",
361
+ 0
362
+ ],
363
+ "switch": [
364
+ "5",
365
+ 0
366
+ ]
367
+ }
368
+ },
369
+ "9": {
370
+ "_meta": {
371
+ "title": "Steps (quality)"
372
+ },
373
+ "class_type": "PrimitiveInt",
374
+ "inputs": {
375
+ "value": 12
376
+ }
377
+ }
378
+ }