@genfeedai/workflows 0.1.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +14 -1
- package/dist/index.d.ts +14 -1
- package/dist/index.js +439 -96
- package/dist/index.mjs +437 -96
- package/metadata/catalog.json +12 -0
- package/package.json +10 -8
- package/workflows/lora-dataset-generator.json +754 -0
package/dist/index.mjs
CHANGED
|
@@ -210,14 +210,12 @@ function buildPulidFluxPrompt(params) {
|
|
|
210
210
|
"2": {
|
|
211
211
|
class_type: "PulidModelLoader",
|
|
212
212
|
inputs: {
|
|
213
|
-
pulid_file: "ip-
|
|
213
|
+
pulid_file: "ip-adapter_pulid_flux_v0.9.1.safetensors"
|
|
214
214
|
}
|
|
215
215
|
},
|
|
216
216
|
"3": {
|
|
217
|
-
class_type: "
|
|
218
|
-
inputs: {
|
|
219
|
-
image: faceImage
|
|
220
|
-
}
|
|
217
|
+
class_type: "PulidEvaClipLoader",
|
|
218
|
+
inputs: {}
|
|
221
219
|
},
|
|
222
220
|
"4": {
|
|
223
221
|
class_type: "PulidInsightFaceLoader",
|
|
@@ -226,30 +224,40 @@ function buildPulidFluxPrompt(params) {
|
|
|
226
224
|
}
|
|
227
225
|
},
|
|
228
226
|
"5": {
|
|
227
|
+
class_type: "LoadImage",
|
|
228
|
+
inputs: {
|
|
229
|
+
image: faceImage
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"6": {
|
|
229
233
|
class_type: "ApplyPulid",
|
|
230
234
|
inputs: {
|
|
231
235
|
model: ["1", 0],
|
|
232
236
|
pulid: ["2", 0],
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
237
|
+
eva_clip: ["3", 0],
|
|
238
|
+
face_analysis: ["4", 0],
|
|
239
|
+
image: ["5", 0],
|
|
240
|
+
method: "fidelity",
|
|
241
|
+
weight: pulidStrength,
|
|
242
|
+
start_at: 0,
|
|
243
|
+
end_at: 1
|
|
236
244
|
}
|
|
237
245
|
},
|
|
238
|
-
"
|
|
246
|
+
"7": {
|
|
239
247
|
class_type: "CLIPTextEncode",
|
|
240
248
|
inputs: {
|
|
241
249
|
text: prompt,
|
|
242
250
|
clip: ["1", 1]
|
|
243
251
|
}
|
|
244
252
|
},
|
|
245
|
-
"
|
|
253
|
+
"8": {
|
|
246
254
|
class_type: "CLIPTextEncode",
|
|
247
255
|
inputs: {
|
|
248
256
|
text: "",
|
|
249
257
|
clip: ["1", 1]
|
|
250
258
|
}
|
|
251
259
|
},
|
|
252
|
-
"
|
|
260
|
+
"9": {
|
|
253
261
|
class_type: "EmptyLatentImage",
|
|
254
262
|
inputs: {
|
|
255
263
|
width,
|
|
@@ -257,13 +265,13 @@ function buildPulidFluxPrompt(params) {
|
|
|
257
265
|
batch_size: 1
|
|
258
266
|
}
|
|
259
267
|
},
|
|
260
|
-
"
|
|
268
|
+
"10": {
|
|
261
269
|
class_type: "KSampler",
|
|
262
270
|
inputs: {
|
|
263
|
-
model: ["
|
|
264
|
-
positive: ["
|
|
265
|
-
negative: ["
|
|
266
|
-
latent_image: ["
|
|
271
|
+
model: ["6", 0],
|
|
272
|
+
positive: ["7", 0],
|
|
273
|
+
negative: ["8", 0],
|
|
274
|
+
latent_image: ["9", 0],
|
|
267
275
|
seed,
|
|
268
276
|
steps,
|
|
269
277
|
cfg,
|
|
@@ -272,17 +280,17 @@ function buildPulidFluxPrompt(params) {
|
|
|
272
280
|
denoise: 1
|
|
273
281
|
}
|
|
274
282
|
},
|
|
275
|
-
"
|
|
283
|
+
"11": {
|
|
276
284
|
class_type: "VAEDecode",
|
|
277
285
|
inputs: {
|
|
278
|
-
samples: ["
|
|
286
|
+
samples: ["10", 0],
|
|
279
287
|
vae: ["1", 2]
|
|
280
288
|
}
|
|
281
289
|
},
|
|
282
|
-
"
|
|
290
|
+
"12": {
|
|
283
291
|
class_type: "SaveImage",
|
|
284
292
|
inputs: {
|
|
285
|
-
images: ["
|
|
293
|
+
images: ["11", 0],
|
|
286
294
|
filename_prefix: "genfeed-pulid-flux"
|
|
287
295
|
}
|
|
288
296
|
}
|
|
@@ -376,24 +384,38 @@ function buildFlux2DevPrompt(params) {
|
|
|
376
384
|
"2": {
|
|
377
385
|
class_type: "CLIPLoader",
|
|
378
386
|
inputs: {
|
|
379
|
-
clip_name: "
|
|
380
|
-
type: "
|
|
387
|
+
clip_name: "mistral_3_small_flux2_fp8.safetensors",
|
|
388
|
+
type: "flux2"
|
|
381
389
|
}
|
|
382
390
|
},
|
|
383
391
|
"3": {
|
|
384
|
-
class_type: "
|
|
392
|
+
class_type: "CLIPTextEncode",
|
|
385
393
|
inputs: {
|
|
386
394
|
text: prompt,
|
|
387
395
|
clip: ["2", 0]
|
|
388
396
|
}
|
|
389
397
|
},
|
|
390
398
|
"4": {
|
|
399
|
+
class_type: "FluxGuidance",
|
|
400
|
+
inputs: {
|
|
401
|
+
conditioning: ["3", 0],
|
|
402
|
+
guidance
|
|
403
|
+
}
|
|
404
|
+
},
|
|
405
|
+
"5": {
|
|
406
|
+
class_type: "CLIPTextEncode",
|
|
407
|
+
inputs: {
|
|
408
|
+
text: "",
|
|
409
|
+
clip: ["2", 0]
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"6": {
|
|
391
413
|
class_type: "VAELoader",
|
|
392
414
|
inputs: {
|
|
393
415
|
vae_name: "flux2-vae.safetensors"
|
|
394
416
|
}
|
|
395
417
|
},
|
|
396
|
-
"
|
|
418
|
+
"7": {
|
|
397
419
|
class_type: "EmptyLatentImage",
|
|
398
420
|
inputs: {
|
|
399
421
|
width,
|
|
@@ -401,32 +423,32 @@ function buildFlux2DevPrompt(params) {
|
|
|
401
423
|
batch_size: 1
|
|
402
424
|
}
|
|
403
425
|
},
|
|
404
|
-
"
|
|
426
|
+
"8": {
|
|
405
427
|
class_type: "KSampler",
|
|
406
428
|
inputs: {
|
|
407
429
|
model: ["1", 0],
|
|
408
|
-
positive: ["
|
|
409
|
-
negative: ["
|
|
410
|
-
latent_image: ["
|
|
430
|
+
positive: ["4", 0],
|
|
431
|
+
negative: ["5", 0],
|
|
432
|
+
latent_image: ["7", 0],
|
|
411
433
|
seed,
|
|
412
434
|
steps,
|
|
413
|
-
cfg:
|
|
435
|
+
cfg: 1,
|
|
414
436
|
sampler_name: "euler",
|
|
415
437
|
scheduler: "normal",
|
|
416
438
|
denoise: 1
|
|
417
439
|
}
|
|
418
440
|
},
|
|
419
|
-
"
|
|
441
|
+
"9": {
|
|
420
442
|
class_type: "VAEDecode",
|
|
421
443
|
inputs: {
|
|
422
|
-
samples: ["
|
|
423
|
-
vae: ["
|
|
444
|
+
samples: ["8", 0],
|
|
445
|
+
vae: ["6", 0]
|
|
424
446
|
}
|
|
425
447
|
},
|
|
426
|
-
"
|
|
448
|
+
"10": {
|
|
427
449
|
class_type: "SaveImage",
|
|
428
450
|
inputs: {
|
|
429
|
-
images: ["
|
|
451
|
+
images: ["9", 0],
|
|
430
452
|
filename_prefix: "genfeed-flux2-dev"
|
|
431
453
|
}
|
|
432
454
|
}
|
|
@@ -441,7 +463,10 @@ function buildFlux2DevPulidPrompt(params) {
|
|
|
441
463
|
height = 1024,
|
|
442
464
|
steps = 20,
|
|
443
465
|
guidance = 3.5,
|
|
444
|
-
pulidStrength = 0.8
|
|
466
|
+
pulidStrength = 0.8,
|
|
467
|
+
pulidMethod = "fidelity",
|
|
468
|
+
pulidStartAt = 0,
|
|
469
|
+
pulidEndAt = 1
|
|
445
470
|
} = params;
|
|
446
471
|
return {
|
|
447
472
|
"1": {
|
|
@@ -454,22 +479,152 @@ function buildFlux2DevPulidPrompt(params) {
|
|
|
454
479
|
"2": {
|
|
455
480
|
class_type: "CLIPLoader",
|
|
456
481
|
inputs: {
|
|
457
|
-
clip_name: "
|
|
458
|
-
type: "
|
|
482
|
+
clip_name: "mistral_3_small_flux2_fp8.safetensors",
|
|
483
|
+
type: "flux2"
|
|
459
484
|
}
|
|
460
485
|
},
|
|
461
486
|
"3": {
|
|
462
487
|
class_type: "PulidModelLoader",
|
|
463
488
|
inputs: {
|
|
464
|
-
pulid_file: "ip-
|
|
489
|
+
pulid_file: "ip-adapter_pulid_flux_v0.9.1.safetensors"
|
|
465
490
|
}
|
|
466
491
|
},
|
|
467
492
|
"4": {
|
|
493
|
+
class_type: "PulidEvaClipLoader",
|
|
494
|
+
inputs: {}
|
|
495
|
+
},
|
|
496
|
+
"5": {
|
|
497
|
+
class_type: "PulidInsightFaceLoader",
|
|
498
|
+
inputs: {
|
|
499
|
+
provider: "CPU"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"6": {
|
|
468
503
|
class_type: "LoadImage",
|
|
469
504
|
inputs: {
|
|
470
505
|
image: faceImage
|
|
471
506
|
}
|
|
472
507
|
},
|
|
508
|
+
"7": {
|
|
509
|
+
class_type: "ApplyPulid",
|
|
510
|
+
inputs: {
|
|
511
|
+
model: ["1", 0],
|
|
512
|
+
pulid: ["3", 0],
|
|
513
|
+
eva_clip: ["4", 0],
|
|
514
|
+
face_analysis: ["5", 0],
|
|
515
|
+
image: ["6", 0],
|
|
516
|
+
method: pulidMethod,
|
|
517
|
+
weight: pulidStrength,
|
|
518
|
+
start_at: pulidStartAt,
|
|
519
|
+
end_at: pulidEndAt
|
|
520
|
+
}
|
|
521
|
+
},
|
|
522
|
+
"8": {
|
|
523
|
+
class_type: "CLIPTextEncode",
|
|
524
|
+
inputs: {
|
|
525
|
+
text: prompt,
|
|
526
|
+
clip: ["2", 0]
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
"9": {
|
|
530
|
+
class_type: "FluxGuidance",
|
|
531
|
+
inputs: {
|
|
532
|
+
conditioning: ["8", 0],
|
|
533
|
+
guidance
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
"10": {
|
|
537
|
+
class_type: "CLIPTextEncode",
|
|
538
|
+
inputs: {
|
|
539
|
+
text: "",
|
|
540
|
+
clip: ["2", 0]
|
|
541
|
+
}
|
|
542
|
+
},
|
|
543
|
+
"11": {
|
|
544
|
+
class_type: "VAELoader",
|
|
545
|
+
inputs: {
|
|
546
|
+
vae_name: "flux2-vae.safetensors"
|
|
547
|
+
}
|
|
548
|
+
},
|
|
549
|
+
"12": {
|
|
550
|
+
class_type: "EmptyLatentImage",
|
|
551
|
+
inputs: {
|
|
552
|
+
width,
|
|
553
|
+
height,
|
|
554
|
+
batch_size: 1
|
|
555
|
+
}
|
|
556
|
+
},
|
|
557
|
+
"13": {
|
|
558
|
+
class_type: "KSampler",
|
|
559
|
+
inputs: {
|
|
560
|
+
model: ["7", 0],
|
|
561
|
+
positive: ["9", 0],
|
|
562
|
+
negative: ["10", 0],
|
|
563
|
+
latent_image: ["12", 0],
|
|
564
|
+
seed,
|
|
565
|
+
steps,
|
|
566
|
+
cfg: 1,
|
|
567
|
+
sampler_name: "euler",
|
|
568
|
+
scheduler: "normal",
|
|
569
|
+
denoise: 1
|
|
570
|
+
}
|
|
571
|
+
},
|
|
572
|
+
"14": {
|
|
573
|
+
class_type: "VAEDecode",
|
|
574
|
+
inputs: {
|
|
575
|
+
samples: ["13", 0],
|
|
576
|
+
vae: ["11", 0]
|
|
577
|
+
}
|
|
578
|
+
},
|
|
579
|
+
"15": {
|
|
580
|
+
class_type: "SaveImage",
|
|
581
|
+
inputs: {
|
|
582
|
+
images: ["14", 0],
|
|
583
|
+
filename_prefix: "genfeed-flux2-pulid"
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
};
|
|
587
|
+
}
|
|
588
|
+
function buildFlux2DevPulidUpscalePrompt(params) {
|
|
589
|
+
const {
|
|
590
|
+
prompt,
|
|
591
|
+
faceImage,
|
|
592
|
+
seed = Math.floor(Math.random() * 2 ** 32),
|
|
593
|
+
width = 832,
|
|
594
|
+
height = 1216,
|
|
595
|
+
steps = 20,
|
|
596
|
+
guidance = 3.5,
|
|
597
|
+
pulidStrength = 0.8,
|
|
598
|
+
pulidMethod = "fidelity",
|
|
599
|
+
pulidStartAt = 0,
|
|
600
|
+
pulidEndAt = 1,
|
|
601
|
+
upscaleModel = "4x-UltraSharp.pth"
|
|
602
|
+
} = params;
|
|
603
|
+
return {
|
|
604
|
+
"1": {
|
|
605
|
+
class_type: "UNETLoader",
|
|
606
|
+
inputs: {
|
|
607
|
+
unet_name: "flux2_dev_fp8mixed.safetensors",
|
|
608
|
+
weight_dtype: "fp8_e4m3fn"
|
|
609
|
+
}
|
|
610
|
+
},
|
|
611
|
+
"2": {
|
|
612
|
+
class_type: "CLIPLoader",
|
|
613
|
+
inputs: {
|
|
614
|
+
clip_name: "mistral_3_small_flux2_fp8.safetensors",
|
|
615
|
+
type: "flux2"
|
|
616
|
+
}
|
|
617
|
+
},
|
|
618
|
+
"3": {
|
|
619
|
+
class_type: "PulidModelLoader",
|
|
620
|
+
inputs: {
|
|
621
|
+
pulid_file: "ip-adapter_pulid_flux_v0.9.1.safetensors"
|
|
622
|
+
}
|
|
623
|
+
},
|
|
624
|
+
"4": {
|
|
625
|
+
class_type: "PulidEvaClipLoader",
|
|
626
|
+
inputs: {}
|
|
627
|
+
},
|
|
473
628
|
"5": {
|
|
474
629
|
class_type: "PulidInsightFaceLoader",
|
|
475
630
|
inputs: {
|
|
@@ -477,29 +632,53 @@ function buildFlux2DevPulidPrompt(params) {
|
|
|
477
632
|
}
|
|
478
633
|
},
|
|
479
634
|
"6": {
|
|
635
|
+
class_type: "LoadImage",
|
|
636
|
+
inputs: {
|
|
637
|
+
image: faceImage
|
|
638
|
+
}
|
|
639
|
+
},
|
|
640
|
+
"7": {
|
|
480
641
|
class_type: "ApplyPulid",
|
|
481
642
|
inputs: {
|
|
482
643
|
model: ["1", 0],
|
|
483
644
|
pulid: ["3", 0],
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
645
|
+
eva_clip: ["4", 0],
|
|
646
|
+
face_analysis: ["5", 0],
|
|
647
|
+
image: ["6", 0],
|
|
648
|
+
method: pulidMethod,
|
|
649
|
+
weight: pulidStrength,
|
|
650
|
+
start_at: pulidStartAt,
|
|
651
|
+
end_at: pulidEndAt
|
|
487
652
|
}
|
|
488
653
|
},
|
|
489
|
-
"
|
|
490
|
-
class_type: "
|
|
654
|
+
"8": {
|
|
655
|
+
class_type: "CLIPTextEncode",
|
|
491
656
|
inputs: {
|
|
492
657
|
text: prompt,
|
|
493
658
|
clip: ["2", 0]
|
|
494
659
|
}
|
|
495
660
|
},
|
|
496
|
-
"
|
|
661
|
+
"9": {
|
|
662
|
+
class_type: "FluxGuidance",
|
|
663
|
+
inputs: {
|
|
664
|
+
conditioning: ["8", 0],
|
|
665
|
+
guidance
|
|
666
|
+
}
|
|
667
|
+
},
|
|
668
|
+
"10": {
|
|
669
|
+
class_type: "CLIPTextEncode",
|
|
670
|
+
inputs: {
|
|
671
|
+
text: "",
|
|
672
|
+
clip: ["2", 0]
|
|
673
|
+
}
|
|
674
|
+
},
|
|
675
|
+
"11": {
|
|
497
676
|
class_type: "VAELoader",
|
|
498
677
|
inputs: {
|
|
499
678
|
vae_name: "flux2-vae.safetensors"
|
|
500
679
|
}
|
|
501
680
|
},
|
|
502
|
-
"
|
|
681
|
+
"12": {
|
|
503
682
|
class_type: "EmptyLatentImage",
|
|
504
683
|
inputs: {
|
|
505
684
|
width,
|
|
@@ -507,33 +686,46 @@ function buildFlux2DevPulidPrompt(params) {
|
|
|
507
686
|
batch_size: 1
|
|
508
687
|
}
|
|
509
688
|
},
|
|
510
|
-
"
|
|
689
|
+
"13": {
|
|
511
690
|
class_type: "KSampler",
|
|
512
691
|
inputs: {
|
|
513
|
-
model: ["
|
|
514
|
-
positive: ["
|
|
515
|
-
negative: ["
|
|
516
|
-
latent_image: ["
|
|
692
|
+
model: ["7", 0],
|
|
693
|
+
positive: ["9", 0],
|
|
694
|
+
negative: ["10", 0],
|
|
695
|
+
latent_image: ["12", 0],
|
|
517
696
|
seed,
|
|
518
697
|
steps,
|
|
519
|
-
cfg:
|
|
698
|
+
cfg: 1,
|
|
520
699
|
sampler_name: "euler",
|
|
521
700
|
scheduler: "normal",
|
|
522
701
|
denoise: 1
|
|
523
702
|
}
|
|
524
703
|
},
|
|
525
|
-
"
|
|
704
|
+
"14": {
|
|
526
705
|
class_type: "VAEDecode",
|
|
527
706
|
inputs: {
|
|
528
|
-
samples: ["
|
|
529
|
-
vae: ["
|
|
707
|
+
samples: ["13", 0],
|
|
708
|
+
vae: ["11", 0]
|
|
530
709
|
}
|
|
531
710
|
},
|
|
532
|
-
"
|
|
711
|
+
"15": {
|
|
712
|
+
class_type: "UpscaleModelLoader",
|
|
713
|
+
inputs: {
|
|
714
|
+
model_name: upscaleModel
|
|
715
|
+
}
|
|
716
|
+
},
|
|
717
|
+
"16": {
|
|
718
|
+
class_type: "ImageUpscaleWithModel",
|
|
719
|
+
inputs: {
|
|
720
|
+
upscale_model: ["15", 0],
|
|
721
|
+
image: ["14", 0]
|
|
722
|
+
}
|
|
723
|
+
},
|
|
724
|
+
"17": {
|
|
533
725
|
class_type: "SaveImage",
|
|
534
726
|
inputs: {
|
|
535
|
-
images: ["
|
|
536
|
-
filename_prefix: "genfeed-flux2-pulid"
|
|
727
|
+
images: ["16", 0],
|
|
728
|
+
filename_prefix: "genfeed-flux2-pulid-4k"
|
|
537
729
|
}
|
|
538
730
|
}
|
|
539
731
|
};
|
|
@@ -549,6 +741,9 @@ function buildFlux2DevPulidLoraPrompt(params) {
|
|
|
549
741
|
steps = 20,
|
|
550
742
|
guidance = 3.5,
|
|
551
743
|
pulidStrength = 0.8,
|
|
744
|
+
pulidMethod = "fidelity",
|
|
745
|
+
pulidStartAt = 0,
|
|
746
|
+
pulidEndAt = 1,
|
|
552
747
|
loraStrength = 0.8
|
|
553
748
|
} = params;
|
|
554
749
|
return {
|
|
@@ -562,8 +757,8 @@ function buildFlux2DevPulidLoraPrompt(params) {
|
|
|
562
757
|
"2": {
|
|
563
758
|
class_type: "CLIPLoader",
|
|
564
759
|
inputs: {
|
|
565
|
-
clip_name: "
|
|
566
|
-
type: "
|
|
760
|
+
clip_name: "mistral_3_small_flux2_fp8.safetensors",
|
|
761
|
+
type: "flux2"
|
|
567
762
|
}
|
|
568
763
|
},
|
|
569
764
|
"3": {
|
|
@@ -579,14 +774,12 @@ function buildFlux2DevPulidLoraPrompt(params) {
|
|
|
579
774
|
"4": {
|
|
580
775
|
class_type: "PulidModelLoader",
|
|
581
776
|
inputs: {
|
|
582
|
-
pulid_file: "ip-
|
|
777
|
+
pulid_file: "ip-adapter_pulid_flux_v0.9.1.safetensors"
|
|
583
778
|
}
|
|
584
779
|
},
|
|
585
780
|
"5": {
|
|
586
|
-
class_type: "
|
|
587
|
-
inputs: {
|
|
588
|
-
image: faceImage
|
|
589
|
-
}
|
|
781
|
+
class_type: "PulidEvaClipLoader",
|
|
782
|
+
inputs: {}
|
|
590
783
|
},
|
|
591
784
|
"6": {
|
|
592
785
|
class_type: "PulidInsightFaceLoader",
|
|
@@ -595,29 +788,53 @@ function buildFlux2DevPulidLoraPrompt(params) {
|
|
|
595
788
|
}
|
|
596
789
|
},
|
|
597
790
|
"7": {
|
|
791
|
+
class_type: "LoadImage",
|
|
792
|
+
inputs: {
|
|
793
|
+
image: faceImage
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
"8": {
|
|
598
797
|
class_type: "ApplyPulid",
|
|
599
798
|
inputs: {
|
|
600
799
|
model: ["3", 0],
|
|
601
800
|
pulid: ["4", 0],
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
801
|
+
eva_clip: ["5", 0],
|
|
802
|
+
face_analysis: ["6", 0],
|
|
803
|
+
image: ["7", 0],
|
|
804
|
+
method: pulidMethod,
|
|
805
|
+
weight: pulidStrength,
|
|
806
|
+
start_at: pulidStartAt,
|
|
807
|
+
end_at: pulidEndAt
|
|
605
808
|
}
|
|
606
809
|
},
|
|
607
|
-
"
|
|
608
|
-
class_type: "
|
|
810
|
+
"9": {
|
|
811
|
+
class_type: "CLIPTextEncode",
|
|
609
812
|
inputs: {
|
|
610
813
|
text: prompt,
|
|
611
814
|
clip: ["3", 1]
|
|
612
815
|
}
|
|
613
816
|
},
|
|
614
|
-
"
|
|
817
|
+
"10": {
|
|
818
|
+
class_type: "FluxGuidance",
|
|
819
|
+
inputs: {
|
|
820
|
+
conditioning: ["9", 0],
|
|
821
|
+
guidance
|
|
822
|
+
}
|
|
823
|
+
},
|
|
824
|
+
"11": {
|
|
825
|
+
class_type: "CLIPTextEncode",
|
|
826
|
+
inputs: {
|
|
827
|
+
text: "",
|
|
828
|
+
clip: ["3", 1]
|
|
829
|
+
}
|
|
830
|
+
},
|
|
831
|
+
"12": {
|
|
615
832
|
class_type: "VAELoader",
|
|
616
833
|
inputs: {
|
|
617
834
|
vae_name: "flux2-vae.safetensors"
|
|
618
835
|
}
|
|
619
836
|
},
|
|
620
|
-
"
|
|
837
|
+
"13": {
|
|
621
838
|
class_type: "EmptyLatentImage",
|
|
622
839
|
inputs: {
|
|
623
840
|
width,
|
|
@@ -625,32 +842,32 @@ function buildFlux2DevPulidLoraPrompt(params) {
|
|
|
625
842
|
batch_size: 1
|
|
626
843
|
}
|
|
627
844
|
},
|
|
628
|
-
"
|
|
845
|
+
"14": {
|
|
629
846
|
class_type: "KSampler",
|
|
630
847
|
inputs: {
|
|
631
|
-
model: ["
|
|
632
|
-
positive: ["
|
|
633
|
-
negative: ["
|
|
634
|
-
latent_image: ["
|
|
848
|
+
model: ["8", 0],
|
|
849
|
+
positive: ["10", 0],
|
|
850
|
+
negative: ["11", 0],
|
|
851
|
+
latent_image: ["13", 0],
|
|
635
852
|
seed,
|
|
636
853
|
steps,
|
|
637
|
-
cfg:
|
|
854
|
+
cfg: 1,
|
|
638
855
|
sampler_name: "euler",
|
|
639
856
|
scheduler: "normal",
|
|
640
857
|
denoise: 1
|
|
641
858
|
}
|
|
642
859
|
},
|
|
643
|
-
"
|
|
860
|
+
"15": {
|
|
644
861
|
class_type: "VAEDecode",
|
|
645
862
|
inputs: {
|
|
646
|
-
samples: ["
|
|
647
|
-
vae: ["
|
|
863
|
+
samples: ["14", 0],
|
|
864
|
+
vae: ["12", 0]
|
|
648
865
|
}
|
|
649
866
|
},
|
|
650
|
-
"
|
|
867
|
+
"16": {
|
|
651
868
|
class_type: "SaveImage",
|
|
652
869
|
inputs: {
|
|
653
|
-
images: ["
|
|
870
|
+
images: ["15", 0],
|
|
654
871
|
filename_prefix: "genfeed-flux2-pulid-lora"
|
|
655
872
|
}
|
|
656
873
|
}
|
|
@@ -675,24 +892,38 @@ function buildFlux2KleinPrompt(params) {
|
|
|
675
892
|
"2": {
|
|
676
893
|
class_type: "CLIPLoader",
|
|
677
894
|
inputs: {
|
|
678
|
-
clip_name: "
|
|
679
|
-
type: "
|
|
895
|
+
clip_name: "mistral_3_small_flux2_fp8.safetensors",
|
|
896
|
+
type: "flux2"
|
|
680
897
|
}
|
|
681
898
|
},
|
|
682
899
|
"3": {
|
|
683
|
-
class_type: "
|
|
900
|
+
class_type: "CLIPTextEncode",
|
|
684
901
|
inputs: {
|
|
685
902
|
text: prompt,
|
|
686
903
|
clip: ["2", 0]
|
|
687
904
|
}
|
|
688
905
|
},
|
|
689
906
|
"4": {
|
|
907
|
+
class_type: "FluxGuidance",
|
|
908
|
+
inputs: {
|
|
909
|
+
conditioning: ["3", 0],
|
|
910
|
+
guidance: 3.5
|
|
911
|
+
}
|
|
912
|
+
},
|
|
913
|
+
"5": {
|
|
914
|
+
class_type: "CLIPTextEncode",
|
|
915
|
+
inputs: {
|
|
916
|
+
text: "",
|
|
917
|
+
clip: ["2", 0]
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
"6": {
|
|
690
921
|
class_type: "VAELoader",
|
|
691
922
|
inputs: {
|
|
692
923
|
vae_name: "flux2-vae.safetensors"
|
|
693
924
|
}
|
|
694
925
|
},
|
|
695
|
-
"
|
|
926
|
+
"7": {
|
|
696
927
|
class_type: "EmptyLatentImage",
|
|
697
928
|
inputs: {
|
|
698
929
|
width,
|
|
@@ -700,37 +931,145 @@ function buildFlux2KleinPrompt(params) {
|
|
|
700
931
|
batch_size: 1
|
|
701
932
|
}
|
|
702
933
|
},
|
|
703
|
-
"
|
|
934
|
+
"8": {
|
|
704
935
|
class_type: "KSampler",
|
|
705
936
|
inputs: {
|
|
706
937
|
model: ["1", 0],
|
|
707
|
-
positive: ["
|
|
708
|
-
negative: ["
|
|
709
|
-
latent_image: ["
|
|
938
|
+
positive: ["4", 0],
|
|
939
|
+
negative: ["5", 0],
|
|
940
|
+
latent_image: ["7", 0],
|
|
710
941
|
seed,
|
|
711
942
|
steps,
|
|
712
|
-
cfg:
|
|
943
|
+
cfg: 1,
|
|
713
944
|
sampler_name: "euler",
|
|
714
945
|
scheduler: "normal",
|
|
715
946
|
denoise: 1
|
|
716
947
|
}
|
|
717
948
|
},
|
|
718
|
-
"
|
|
949
|
+
"9": {
|
|
719
950
|
class_type: "VAEDecode",
|
|
720
951
|
inputs: {
|
|
721
|
-
samples: ["
|
|
722
|
-
vae: ["
|
|
952
|
+
samples: ["8", 0],
|
|
953
|
+
vae: ["6", 0]
|
|
723
954
|
}
|
|
724
955
|
},
|
|
725
|
-
"
|
|
956
|
+
"10": {
|
|
726
957
|
class_type: "SaveImage",
|
|
727
958
|
inputs: {
|
|
728
|
-
images: ["
|
|
959
|
+
images: ["9", 0],
|
|
729
960
|
filename_prefix: "genfeed-flux2-klein"
|
|
730
961
|
}
|
|
731
962
|
}
|
|
732
963
|
};
|
|
733
964
|
}
|
|
965
|
+
function buildZImageTurboLoraPrompt(params) {
|
|
966
|
+
const {
|
|
967
|
+
prompt,
|
|
968
|
+
loraPath,
|
|
969
|
+
seed = Math.floor(Math.random() * 2 ** 32),
|
|
970
|
+
width = 832,
|
|
971
|
+
height = 1216,
|
|
972
|
+
steps = 8,
|
|
973
|
+
loraStrength = 0.8,
|
|
974
|
+
upscaleModel = "4x-UltraSharp.pth"
|
|
975
|
+
} = params;
|
|
976
|
+
return {
|
|
977
|
+
"1": {
|
|
978
|
+
class_type: "UNETLoader",
|
|
979
|
+
inputs: {
|
|
980
|
+
unet_name: "z_image_turbo_bf16.safetensors",
|
|
981
|
+
weight_dtype: "default"
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
"2": {
|
|
985
|
+
class_type: "CLIPLoader",
|
|
986
|
+
inputs: {
|
|
987
|
+
clip_name: "qwen_3_4b.safetensors",
|
|
988
|
+
type: "lumina2"
|
|
989
|
+
}
|
|
990
|
+
},
|
|
991
|
+
"3": {
|
|
992
|
+
class_type: "LoraLoader",
|
|
993
|
+
inputs: {
|
|
994
|
+
model: ["1", 0],
|
|
995
|
+
clip: ["2", 0],
|
|
996
|
+
lora_name: loraPath,
|
|
997
|
+
strength_model: loraStrength,
|
|
998
|
+
strength_clip: loraStrength
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
1001
|
+
"4": {
|
|
1002
|
+
class_type: "CLIPTextEncode",
|
|
1003
|
+
inputs: {
|
|
1004
|
+
text: prompt,
|
|
1005
|
+
clip: ["3", 1]
|
|
1006
|
+
}
|
|
1007
|
+
},
|
|
1008
|
+
"5": {
|
|
1009
|
+
class_type: "CLIPTextEncode",
|
|
1010
|
+
inputs: {
|
|
1011
|
+
text: "",
|
|
1012
|
+
clip: ["3", 1]
|
|
1013
|
+
}
|
|
1014
|
+
},
|
|
1015
|
+
"6": {
|
|
1016
|
+
class_type: "EmptyLatentImage",
|
|
1017
|
+
inputs: {
|
|
1018
|
+
width,
|
|
1019
|
+
height,
|
|
1020
|
+
batch_size: 1
|
|
1021
|
+
}
|
|
1022
|
+
},
|
|
1023
|
+
"7": {
|
|
1024
|
+
class_type: "KSampler",
|
|
1025
|
+
inputs: {
|
|
1026
|
+
model: ["3", 0],
|
|
1027
|
+
positive: ["4", 0],
|
|
1028
|
+
negative: ["5", 0],
|
|
1029
|
+
latent_image: ["6", 0],
|
|
1030
|
+
seed,
|
|
1031
|
+
steps,
|
|
1032
|
+
cfg: 1,
|
|
1033
|
+
sampler_name: "euler_ancestral",
|
|
1034
|
+
scheduler: "normal",
|
|
1035
|
+
denoise: 1
|
|
1036
|
+
}
|
|
1037
|
+
},
|
|
1038
|
+
"8": {
|
|
1039
|
+
class_type: "VAELoader",
|
|
1040
|
+
inputs: {
|
|
1041
|
+
vae_name: "ae.safetensors"
|
|
1042
|
+
}
|
|
1043
|
+
},
|
|
1044
|
+
"9": {
|
|
1045
|
+
class_type: "VAEDecode",
|
|
1046
|
+
inputs: {
|
|
1047
|
+
samples: ["7", 0],
|
|
1048
|
+
vae: ["8", 0]
|
|
1049
|
+
}
|
|
1050
|
+
},
|
|
1051
|
+
"10": {
|
|
1052
|
+
class_type: "UpscaleModelLoader",
|
|
1053
|
+
inputs: {
|
|
1054
|
+
model_name: upscaleModel
|
|
1055
|
+
}
|
|
1056
|
+
},
|
|
1057
|
+
"11": {
|
|
1058
|
+
class_type: "ImageUpscaleWithModel",
|
|
1059
|
+
inputs: {
|
|
1060
|
+
upscale_model: ["10", 0],
|
|
1061
|
+
image: ["9", 0]
|
|
1062
|
+
}
|
|
1063
|
+
},
|
|
1064
|
+
"12": {
|
|
1065
|
+
class_type: "SaveImage",
|
|
1066
|
+
inputs: {
|
|
1067
|
+
images: ["11", 0],
|
|
1068
|
+
filename_prefix: "genfeed-z-turbo-lora"
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
};
|
|
1072
|
+
}
|
|
734
1073
|
|
|
735
1074
|
// src/index.ts
|
|
736
1075
|
import * as fs from "node:fs";
|
|
@@ -851,9 +1190,11 @@ export {
|
|
|
851
1190
|
buildFlux2DevPrompt,
|
|
852
1191
|
buildFlux2DevPulidLoraPrompt,
|
|
853
1192
|
buildFlux2DevPulidPrompt,
|
|
1193
|
+
buildFlux2DevPulidUpscalePrompt,
|
|
854
1194
|
buildFlux2KleinPrompt,
|
|
855
1195
|
buildFluxDevPrompt,
|
|
856
1196
|
buildPulidFluxPrompt,
|
|
1197
|
+
buildZImageTurboLoraPrompt,
|
|
857
1198
|
buildZImageTurboPrompt,
|
|
858
1199
|
getAllWorkflows,
|
|
859
1200
|
getWorkflow,
|