aleph65 commited on
Commit
b6d16c5
·
verified ·
1 Parent(s): 96ce0be

Upload workflows/api/outpaint-qwen.json with huggingface_hub

Browse files
Files changed (1) hide show
  1. workflows/api/outpaint-qwen.json +494 -0
workflows/api/outpaint-qwen.json ADDED
@@ -0,0 +1,494 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "1": {
3
+ "_meta": {
4
+ "title": "Source Image"
5
+ },
6
+ "class_type": "LoadImage",
7
+ "inputs": {
8
+ "image": "example.png"
9
+ }
10
+ },
11
+ "10": {
12
+ "_meta": {
13
+ "title": "Resize to fit target"
14
+ },
15
+ "class_type": "ImageScale",
16
+ "inputs": {
17
+ "crop": "disabled",
18
+ "height": [
19
+ "9",
20
+ 0
21
+ ],
22
+ "image": [
23
+ "1",
24
+ 0
25
+ ],
26
+ "upscale_method": "lanczos",
27
+ "width": [
28
+ "8",
29
+ 0
30
+ ]
31
+ }
32
+ },
33
+ "11": {
34
+ "_meta": {
35
+ "title": "pad left"
36
+ },
37
+ "class_type": "MathExpression|pysssss",
38
+ "inputs": {
39
+ "a": [
40
+ "10",
41
+ 0
42
+ ],
43
+ "b": [
44
+ "2",
45
+ 0
46
+ ],
47
+ "c": [
48
+ "4",
49
+ 0
50
+ ],
51
+ "expression": "max(floor((b - a.width) * c), 0)"
52
+ }
53
+ },
54
+ "12": {
55
+ "_meta": {
56
+ "title": "pad right"
57
+ },
58
+ "class_type": "MathExpression|pysssss",
59
+ "inputs": {
60
+ "a": [
61
+ "10",
62
+ 0
63
+ ],
64
+ "b": [
65
+ "2",
66
+ 0
67
+ ],
68
+ "c": [
69
+ "11",
70
+ 0
71
+ ],
72
+ "expression": "max(b - a.width - c, 0)"
73
+ }
74
+ },
75
+ "13": {
76
+ "_meta": {
77
+ "title": "pad top"
78
+ },
79
+ "class_type": "MathExpression|pysssss",
80
+ "inputs": {
81
+ "a": [
82
+ "10",
83
+ 0
84
+ ],
85
+ "b": [
86
+ "3",
87
+ 0
88
+ ],
89
+ "c": [
90
+ "5",
91
+ 0
92
+ ],
93
+ "expression": "max(floor((b - a.height) * c), 0)"
94
+ }
95
+ },
96
+ "14": {
97
+ "_meta": {
98
+ "title": "pad bottom"
99
+ },
100
+ "class_type": "MathExpression|pysssss",
101
+ "inputs": {
102
+ "a": [
103
+ "10",
104
+ 0
105
+ ],
106
+ "b": [
107
+ "3",
108
+ 0
109
+ ],
110
+ "c": [
111
+ "13",
112
+ 0
113
+ ],
114
+ "expression": "max(b - a.height - c, 0)"
115
+ }
116
+ },
117
+ "15": {
118
+ "_meta": {
119
+ "title": "Pad to exact target"
120
+ },
121
+ "class_type": "ImagePadForOutpaint",
122
+ "inputs": {
123
+ "bottom": [
124
+ "14",
125
+ 0
126
+ ],
127
+ "feathering": [
128
+ "6",
129
+ 0
130
+ ],
131
+ "image": [
132
+ "10",
133
+ 0
134
+ ],
135
+ "left": [
136
+ "11",
137
+ 0
138
+ ],
139
+ "right": [
140
+ "12",
141
+ 0
142
+ ],
143
+ "top": [
144
+ "13",
145
+ 0
146
+ ]
147
+ }
148
+ },
149
+ "16": {
150
+ "_meta": {
151
+ "title": "keep-region mask"
152
+ },
153
+ "class_type": "InvertMask",
154
+ "inputs": {
155
+ "mask": [
156
+ "15",
157
+ 1
158
+ ]
159
+ }
160
+ },
161
+ "17": {
162
+ "class_type": "UNETLoader",
163
+ "inputs": {
164
+ "unet_name": "qwen_image_edit_2511_bf16.safetensors",
165
+ "weight_dtype": "default"
166
+ }
167
+ },
168
+ "18": {
169
+ "_meta": {
170
+ "title": "Lightning 8-step LoRA"
171
+ },
172
+ "class_type": "LoraLoaderModelOnly",
173
+ "inputs": {
174
+ "lora_name": "Qwen-Image-Edit-2511-Lightning-8steps-V1.0-bf16.safetensors",
175
+ "model": [
176
+ "17",
177
+ 0
178
+ ],
179
+ "strength_model": 1.0
180
+ }
181
+ },
182
+ "19": {
183
+ "class_type": "ModelSamplingAuraFlow",
184
+ "inputs": {
185
+ "model": [
186
+ "18",
187
+ 0
188
+ ],
189
+ "shift": 3.1
190
+ }
191
+ },
192
+ "2": {
193
+ "_meta": {
194
+ "title": "target_width"
195
+ },
196
+ "class_type": "PrimitiveInt",
197
+ "inputs": {
198
+ "value": 1216
199
+ }
200
+ },
201
+ "20": {
202
+ "class_type": "CFGNorm",
203
+ "inputs": {
204
+ "model": [
205
+ "19",
206
+ 0
207
+ ],
208
+ "pre_cfg": false,
209
+ "strength": 1.0
210
+ }
211
+ },
212
+ "21": {
213
+ "class_type": "CLIPLoader",
214
+ "inputs": {
215
+ "clip_name": "qwen_2.5_vl_7b.safetensors",
216
+ "device": "default",
217
+ "type": "qwen_image"
218
+ }
219
+ },
220
+ "22": {
221
+ "class_type": "VAELoader",
222
+ "inputs": {
223
+ "vae_name": "qwen_image_vae.safetensors"
224
+ }
225
+ },
226
+ "23": {
227
+ "_meta": {
228
+ "title": "Prompt"
229
+ },
230
+ "class_type": "PrimitiveStringMultiline",
231
+ "inputs": {
232
+ "value": "Extend the photo beyond its original borders, continuing the scene seamlessly and photorealistically. Keep the original area exactly unchanged. Consistent lighting, colors and perspective. High quality, sharp details."
233
+ }
234
+ },
235
+ "24": {
236
+ "_meta": {
237
+ "title": "Qwen Edit encode"
238
+ },
239
+ "class_type": "TextEncodeQwenImageEditPlus",
240
+ "inputs": {
241
+ "clip": [
242
+ "21",
243
+ 0
244
+ ],
245
+ "image1": [
246
+ "15",
247
+ 0
248
+ ],
249
+ "prompt": [
250
+ "23",
251
+ 0
252
+ ],
253
+ "vae": [
254
+ "22",
255
+ 0
256
+ ]
257
+ }
258
+ },
259
+ "25": {
260
+ "_meta": {
261
+ "title": "Negative (zeroed)"
262
+ },
263
+ "class_type": "ConditioningZeroOut",
264
+ "inputs": {
265
+ "conditioning": [
266
+ "24",
267
+ 0
268
+ ]
269
+ }
270
+ },
271
+ "26": {
272
+ "class_type": "VAEEncode",
273
+ "inputs": {
274
+ "pixels": [
275
+ "15",
276
+ 0
277
+ ],
278
+ "vae": [
279
+ "22",
280
+ 0
281
+ ]
282
+ }
283
+ },
284
+ "27": {
285
+ "_meta": {
286
+ "title": "Only denoise padded area"
287
+ },
288
+ "class_type": "SetLatentNoiseMask",
289
+ "inputs": {
290
+ "mask": [
291
+ "15",
292
+ 1
293
+ ],
294
+ "samples": [
295
+ "26",
296
+ 0
297
+ ]
298
+ }
299
+ },
300
+ "28": {
301
+ "class_type": "KSampler",
302
+ "inputs": {
303
+ "cfg": 1.0,
304
+ "denoise": 1.0,
305
+ "latent_image": [
306
+ "27",
307
+ 0
308
+ ],
309
+ "model": [
310
+ "20",
311
+ 0
312
+ ],
313
+ "negative": [
314
+ "25",
315
+ 0
316
+ ],
317
+ "positive": [
318
+ "24",
319
+ 0
320
+ ],
321
+ "sampler_name": "euler",
322
+ "scheduler": "simple",
323
+ "seed": 0,
324
+ "steps": 8
325
+ }
326
+ },
327
+ "29": {
328
+ "class_type": "VAEDecode",
329
+ "inputs": {
330
+ "samples": [
331
+ "28",
332
+ 0
333
+ ],
334
+ "vae": [
335
+ "22",
336
+ 0
337
+ ]
338
+ }
339
+ },
340
+ "3": {
341
+ "_meta": {
342
+ "title": "target_height"
343
+ },
344
+ "class_type": "PrimitiveInt",
345
+ "inputs": {
346
+ "value": 1216
347
+ }
348
+ },
349
+ "30": {
350
+ "_meta": {
351
+ "title": "Snap to exact target dims"
352
+ },
353
+ "class_type": "ImageScale",
354
+ "inputs": {
355
+ "crop": "disabled",
356
+ "height": [
357
+ "3",
358
+ 0
359
+ ],
360
+ "image": [
361
+ "29",
362
+ 0
363
+ ],
364
+ "upscale_method": "lanczos",
365
+ "width": [
366
+ "2",
367
+ 0
368
+ ]
369
+ }
370
+ },
371
+ "31": {
372
+ "_meta": {
373
+ "title": "Paste original pixels back"
374
+ },
375
+ "class_type": "ImageCompositeMasked",
376
+ "inputs": {
377
+ "destination": [
378
+ "30",
379
+ 0
380
+ ],
381
+ "mask": [
382
+ "16",
383
+ 0
384
+ ],
385
+ "resize_source": false,
386
+ "source": [
387
+ "15",
388
+ 0
389
+ ],
390
+ "x": 0,
391
+ "y": 0
392
+ }
393
+ },
394
+ "32": {
395
+ "class_type": "SaveImage",
396
+ "inputs": {
397
+ "filename_prefix": "outpaint/qwen",
398
+ "images": [
399
+ "31",
400
+ 0
401
+ ]
402
+ }
403
+ },
404
+ "4": {
405
+ "_meta": {
406
+ "title": "anchor_x (0=left 0.5=center 1=right)"
407
+ },
408
+ "class_type": "PrimitiveFloat",
409
+ "inputs": {
410
+ "value": 0.5
411
+ }
412
+ },
413
+ "5": {
414
+ "_meta": {
415
+ "title": "anchor_y (0=top 0.5=center 1=bottom)"
416
+ },
417
+ "class_type": "PrimitiveFloat",
418
+ "inputs": {
419
+ "value": 0.5
420
+ }
421
+ },
422
+ "6": {
423
+ "_meta": {
424
+ "title": "feathering (px)"
425
+ },
426
+ "class_type": "PrimitiveInt",
427
+ "inputs": {
428
+ "value": 40
429
+ }
430
+ },
431
+ "7": {
432
+ "_meta": {
433
+ "title": "fit scale"
434
+ },
435
+ "class_type": "MathExpression|pysssss",
436
+ "inputs": {
437
+ "a": [
438
+ "1",
439
+ 0
440
+ ],
441
+ "b": [
442
+ "2",
443
+ 0
444
+ ],
445
+ "c": [
446
+ "3",
447
+ 0
448
+ ],
449
+ "expression": "min(b / a.width, c / a.height)"
450
+ }
451
+ },
452
+ "8": {
453
+ "_meta": {
454
+ "title": "fit width"
455
+ },
456
+ "class_type": "MathExpression|pysssss",
457
+ "inputs": {
458
+ "a": [
459
+ "1",
460
+ 0
461
+ ],
462
+ "b": [
463
+ "7",
464
+ 1
465
+ ],
466
+ "c": [
467
+ "2",
468
+ 0
469
+ ],
470
+ "expression": "min(round(a.width * b), c)"
471
+ }
472
+ },
473
+ "9": {
474
+ "_meta": {
475
+ "title": "fit height"
476
+ },
477
+ "class_type": "MathExpression|pysssss",
478
+ "inputs": {
479
+ "a": [
480
+ "1",
481
+ 0
482
+ ],
483
+ "b": [
484
+ "7",
485
+ 1
486
+ ],
487
+ "c": [
488
+ "3",
489
+ 0
490
+ ],
491
+ "expression": "min(round(a.height * b), c)"
492
+ }
493
+ }
494
+ }