Upload workflows/api/outpaint-qwen.json with huggingface_hub
Browse files- workflows/api/outpaint-qwen.json +182 -34
workflows/api/outpaint-qwen.json
CHANGED
|
@@ -233,6 +233,138 @@
|
|
| 233 |
}
|
| 234 |
},
|
| 235 |
"24": {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
"_meta": {
|
| 237 |
"title": "Qwen Edit encode"
|
| 238 |
},
|
|
@@ -243,7 +375,7 @@
|
|
| 243 |
0
|
| 244 |
],
|
| 245 |
"image1": [
|
| 246 |
-
"
|
| 247 |
0
|
| 248 |
],
|
| 249 |
"prompt": [
|
|
@@ -256,23 +388,23 @@
|
|
| 256 |
]
|
| 257 |
}
|
| 258 |
},
|
| 259 |
-
"
|
| 260 |
"_meta": {
|
| 261 |
"title": "Negative (zeroed)"
|
| 262 |
},
|
| 263 |
"class_type": "ConditioningZeroOut",
|
| 264 |
"inputs": {
|
| 265 |
"conditioning": [
|
| 266 |
-
"
|
| 267 |
0
|
| 268 |
]
|
| 269 |
}
|
| 270 |
},
|
| 271 |
-
"
|
| 272 |
"class_type": "VAEEncode",
|
| 273 |
"inputs": {
|
| 274 |
"pixels": [
|
| 275 |
-
"
|
| 276 |
0
|
| 277 |
],
|
| 278 |
"vae": [
|
|
@@ -281,29 +413,29 @@
|
|
| 281 |
]
|
| 282 |
}
|
| 283 |
},
|
| 284 |
-
"
|
| 285 |
"_meta": {
|
| 286 |
"title": "Only denoise padded area"
|
| 287 |
},
|
| 288 |
"class_type": "SetLatentNoiseMask",
|
| 289 |
"inputs": {
|
| 290 |
"mask": [
|
| 291 |
-
"
|
| 292 |
-
|
| 293 |
],
|
| 294 |
"samples": [
|
| 295 |
-
"
|
| 296 |
0
|
| 297 |
]
|
| 298 |
}
|
| 299 |
},
|
| 300 |
-
"
|
| 301 |
"class_type": "KSampler",
|
| 302 |
"inputs": {
|
| 303 |
"cfg": 1.0,
|
| 304 |
"denoise": 1.0,
|
| 305 |
"latent_image": [
|
| 306 |
-
"
|
| 307 |
0
|
| 308 |
],
|
| 309 |
"model": [
|
|
@@ -311,11 +443,11 @@
|
|
| 311 |
0
|
| 312 |
],
|
| 313 |
"negative": [
|
| 314 |
-
"
|
| 315 |
0
|
| 316 |
],
|
| 317 |
"positive": [
|
| 318 |
-
"
|
| 319 |
0
|
| 320 |
],
|
| 321 |
"sampler_name": "euler",
|
|
@@ -324,11 +456,11 @@
|
|
| 324 |
"steps": 8
|
| 325 |
}
|
| 326 |
},
|
| 327 |
-
"
|
| 328 |
"class_type": "VAEDecode",
|
| 329 |
"inputs": {
|
| 330 |
"samples": [
|
| 331 |
-
"
|
| 332 |
0
|
| 333 |
],
|
| 334 |
"vae": [
|
|
@@ -337,16 +469,41 @@
|
|
| 337 |
]
|
| 338 |
}
|
| 339 |
},
|
| 340 |
-
"
|
| 341 |
"_meta": {
|
| 342 |
-
"title": "
|
| 343 |
},
|
| 344 |
-
"class_type": "
|
| 345 |
"inputs": {
|
| 346 |
-
"
|
| 347 |
}
|
| 348 |
},
|
| 349 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 350 |
"_meta": {
|
| 351 |
"title": "Snap to exact target dims"
|
| 352 |
},
|
|
@@ -358,7 +515,7 @@
|
|
| 358 |
0
|
| 359 |
],
|
| 360 |
"image": [
|
| 361 |
-
"
|
| 362 |
0
|
| 363 |
],
|
| 364 |
"upscale_method": "lanczos",
|
|
@@ -368,14 +525,14 @@
|
|
| 368 |
]
|
| 369 |
}
|
| 370 |
},
|
| 371 |
-
"
|
| 372 |
"_meta": {
|
| 373 |
"title": "Paste original pixels back"
|
| 374 |
},
|
| 375 |
"class_type": "ImageCompositeMasked",
|
| 376 |
"inputs": {
|
| 377 |
"destination": [
|
| 378 |
-
"
|
| 379 |
0
|
| 380 |
],
|
| 381 |
"mask": [
|
|
@@ -391,25 +548,16 @@
|
|
| 391 |
"y": 0
|
| 392 |
}
|
| 393 |
},
|
| 394 |
-
"
|
| 395 |
"class_type": "SaveImage",
|
| 396 |
"inputs": {
|
| 397 |
"filename_prefix": "outpaint/qwen",
|
| 398 |
"images": [
|
| 399 |
-
"
|
| 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)"
|
|
|
|
| 233 |
}
|
| 234 |
},
|
| 235 |
"24": {
|
| 236 |
+
"_meta": {
|
| 237 |
+
"title": "process_long_side (sampling res cap)"
|
| 238 |
+
},
|
| 239 |
+
"class_type": "PrimitiveInt",
|
| 240 |
+
"inputs": {
|
| 241 |
+
"value": 1344
|
| 242 |
+
}
|
| 243 |
+
},
|
| 244 |
+
"25": {
|
| 245 |
+
"_meta": {
|
| 246 |
+
"title": "process scale"
|
| 247 |
+
},
|
| 248 |
+
"class_type": "MathExpression|pysssss",
|
| 249 |
+
"inputs": {
|
| 250 |
+
"a": [
|
| 251 |
+
"15",
|
| 252 |
+
0
|
| 253 |
+
],
|
| 254 |
+
"c": [
|
| 255 |
+
"24",
|
| 256 |
+
0
|
| 257 |
+
],
|
| 258 |
+
"expression": "min(1, c / max(a.width, a.height))"
|
| 259 |
+
}
|
| 260 |
+
},
|
| 261 |
+
"26": {
|
| 262 |
+
"_meta": {
|
| 263 |
+
"title": "work width"
|
| 264 |
+
},
|
| 265 |
+
"class_type": "MathExpression|pysssss",
|
| 266 |
+
"inputs": {
|
| 267 |
+
"a": [
|
| 268 |
+
"15",
|
| 269 |
+
0
|
| 270 |
+
],
|
| 271 |
+
"b": [
|
| 272 |
+
"25",
|
| 273 |
+
1
|
| 274 |
+
],
|
| 275 |
+
"expression": "round(a.width * b / 16) * 16"
|
| 276 |
+
}
|
| 277 |
+
},
|
| 278 |
+
"27": {
|
| 279 |
+
"_meta": {
|
| 280 |
+
"title": "work height"
|
| 281 |
+
},
|
| 282 |
+
"class_type": "MathExpression|pysssss",
|
| 283 |
+
"inputs": {
|
| 284 |
+
"a": [
|
| 285 |
+
"15",
|
| 286 |
+
0
|
| 287 |
+
],
|
| 288 |
+
"b": [
|
| 289 |
+
"25",
|
| 290 |
+
1
|
| 291 |
+
],
|
| 292 |
+
"expression": "round(a.height * b / 16) * 16"
|
| 293 |
+
}
|
| 294 |
+
},
|
| 295 |
+
"28": {
|
| 296 |
+
"_meta": {
|
| 297 |
+
"title": "Downscale for sampling"
|
| 298 |
+
},
|
| 299 |
+
"class_type": "ImageScale",
|
| 300 |
+
"inputs": {
|
| 301 |
+
"crop": "disabled",
|
| 302 |
+
"height": [
|
| 303 |
+
"27",
|
| 304 |
+
0
|
| 305 |
+
],
|
| 306 |
+
"image": [
|
| 307 |
+
"15",
|
| 308 |
+
0
|
| 309 |
+
],
|
| 310 |
+
"upscale_method": "lanczos",
|
| 311 |
+
"width": [
|
| 312 |
+
"26",
|
| 313 |
+
0
|
| 314 |
+
]
|
| 315 |
+
}
|
| 316 |
+
},
|
| 317 |
+
"29": {
|
| 318 |
+
"class_type": "MaskToImage",
|
| 319 |
+
"inputs": {
|
| 320 |
+
"mask": [
|
| 321 |
+
"15",
|
| 322 |
+
1
|
| 323 |
+
]
|
| 324 |
+
}
|
| 325 |
+
},
|
| 326 |
+
"3": {
|
| 327 |
+
"_meta": {
|
| 328 |
+
"title": "target_height"
|
| 329 |
+
},
|
| 330 |
+
"class_type": "PrimitiveInt",
|
| 331 |
+
"inputs": {
|
| 332 |
+
"value": 1216
|
| 333 |
+
}
|
| 334 |
+
},
|
| 335 |
+
"30": {
|
| 336 |
+
"_meta": {
|
| 337 |
+
"title": "Downscale mask"
|
| 338 |
+
},
|
| 339 |
+
"class_type": "ImageScale",
|
| 340 |
+
"inputs": {
|
| 341 |
+
"crop": "disabled",
|
| 342 |
+
"height": [
|
| 343 |
+
"27",
|
| 344 |
+
0
|
| 345 |
+
],
|
| 346 |
+
"image": [
|
| 347 |
+
"29",
|
| 348 |
+
0
|
| 349 |
+
],
|
| 350 |
+
"upscale_method": "bilinear",
|
| 351 |
+
"width": [
|
| 352 |
+
"26",
|
| 353 |
+
0
|
| 354 |
+
]
|
| 355 |
+
}
|
| 356 |
+
},
|
| 357 |
+
"31": {
|
| 358 |
+
"class_type": "ImageToMask",
|
| 359 |
+
"inputs": {
|
| 360 |
+
"channel": "red",
|
| 361 |
+
"image": [
|
| 362 |
+
"30",
|
| 363 |
+
0
|
| 364 |
+
]
|
| 365 |
+
}
|
| 366 |
+
},
|
| 367 |
+
"32": {
|
| 368 |
"_meta": {
|
| 369 |
"title": "Qwen Edit encode"
|
| 370 |
},
|
|
|
|
| 375 |
0
|
| 376 |
],
|
| 377 |
"image1": [
|
| 378 |
+
"28",
|
| 379 |
0
|
| 380 |
],
|
| 381 |
"prompt": [
|
|
|
|
| 388 |
]
|
| 389 |
}
|
| 390 |
},
|
| 391 |
+
"33": {
|
| 392 |
"_meta": {
|
| 393 |
"title": "Negative (zeroed)"
|
| 394 |
},
|
| 395 |
"class_type": "ConditioningZeroOut",
|
| 396 |
"inputs": {
|
| 397 |
"conditioning": [
|
| 398 |
+
"32",
|
| 399 |
0
|
| 400 |
]
|
| 401 |
}
|
| 402 |
},
|
| 403 |
+
"34": {
|
| 404 |
"class_type": "VAEEncode",
|
| 405 |
"inputs": {
|
| 406 |
"pixels": [
|
| 407 |
+
"28",
|
| 408 |
0
|
| 409 |
],
|
| 410 |
"vae": [
|
|
|
|
| 413 |
]
|
| 414 |
}
|
| 415 |
},
|
| 416 |
+
"35": {
|
| 417 |
"_meta": {
|
| 418 |
"title": "Only denoise padded area"
|
| 419 |
},
|
| 420 |
"class_type": "SetLatentNoiseMask",
|
| 421 |
"inputs": {
|
| 422 |
"mask": [
|
| 423 |
+
"31",
|
| 424 |
+
0
|
| 425 |
],
|
| 426 |
"samples": [
|
| 427 |
+
"34",
|
| 428 |
0
|
| 429 |
]
|
| 430 |
}
|
| 431 |
},
|
| 432 |
+
"36": {
|
| 433 |
"class_type": "KSampler",
|
| 434 |
"inputs": {
|
| 435 |
"cfg": 1.0,
|
| 436 |
"denoise": 1.0,
|
| 437 |
"latent_image": [
|
| 438 |
+
"35",
|
| 439 |
0
|
| 440 |
],
|
| 441 |
"model": [
|
|
|
|
| 443 |
0
|
| 444 |
],
|
| 445 |
"negative": [
|
| 446 |
+
"33",
|
| 447 |
0
|
| 448 |
],
|
| 449 |
"positive": [
|
| 450 |
+
"32",
|
| 451 |
0
|
| 452 |
],
|
| 453 |
"sampler_name": "euler",
|
|
|
|
| 456 |
"steps": 8
|
| 457 |
}
|
| 458 |
},
|
| 459 |
+
"37": {
|
| 460 |
"class_type": "VAEDecode",
|
| 461 |
"inputs": {
|
| 462 |
"samples": [
|
| 463 |
+
"36",
|
| 464 |
0
|
| 465 |
],
|
| 466 |
"vae": [
|
|
|
|
| 469 |
]
|
| 470 |
}
|
| 471 |
},
|
| 472 |
+
"38": {
|
| 473 |
"_meta": {
|
| 474 |
+
"title": "Fill detail restorer"
|
| 475 |
},
|
| 476 |
+
"class_type": "UpscaleModelLoader",
|
| 477 |
"inputs": {
|
| 478 |
+
"model_name": "RealESRGAN_x4plus.pth"
|
| 479 |
}
|
| 480 |
},
|
| 481 |
+
"39": {
|
| 482 |
+
"_meta": {
|
| 483 |
+
"title": "Upscale sampled result"
|
| 484 |
+
},
|
| 485 |
+
"class_type": "ImageUpscaleWithModel",
|
| 486 |
+
"inputs": {
|
| 487 |
+
"image": [
|
| 488 |
+
"37",
|
| 489 |
+
0
|
| 490 |
+
],
|
| 491 |
+
"upscale_model": [
|
| 492 |
+
"38",
|
| 493 |
+
0
|
| 494 |
+
]
|
| 495 |
+
}
|
| 496 |
+
},
|
| 497 |
+
"4": {
|
| 498 |
+
"_meta": {
|
| 499 |
+
"title": "anchor_x (0=left 0.5=center 1=right)"
|
| 500 |
+
},
|
| 501 |
+
"class_type": "PrimitiveFloat",
|
| 502 |
+
"inputs": {
|
| 503 |
+
"value": 0.5
|
| 504 |
+
}
|
| 505 |
+
},
|
| 506 |
+
"40": {
|
| 507 |
"_meta": {
|
| 508 |
"title": "Snap to exact target dims"
|
| 509 |
},
|
|
|
|
| 515 |
0
|
| 516 |
],
|
| 517 |
"image": [
|
| 518 |
+
"39",
|
| 519 |
0
|
| 520 |
],
|
| 521 |
"upscale_method": "lanczos",
|
|
|
|
| 525 |
]
|
| 526 |
}
|
| 527 |
},
|
| 528 |
+
"41": {
|
| 529 |
"_meta": {
|
| 530 |
"title": "Paste original pixels back"
|
| 531 |
},
|
| 532 |
"class_type": "ImageCompositeMasked",
|
| 533 |
"inputs": {
|
| 534 |
"destination": [
|
| 535 |
+
"40",
|
| 536 |
0
|
| 537 |
],
|
| 538 |
"mask": [
|
|
|
|
| 548 |
"y": 0
|
| 549 |
}
|
| 550 |
},
|
| 551 |
+
"42": {
|
| 552 |
"class_type": "SaveImage",
|
| 553 |
"inputs": {
|
| 554 |
"filename_prefix": "outpaint/qwen",
|
| 555 |
"images": [
|
| 556 |
+
"41",
|
| 557 |
0
|
| 558 |
]
|
| 559 |
}
|
| 560 |
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 561 |
"5": {
|
| 562 |
"_meta": {
|
| 563 |
"title": "anchor_y (0=top 0.5=center 1=bottom)"
|