Commit de10be4
committed
Expose max_area for condition images in Flux2 pipelines
The condition/reference image downscale threshold was hardcoded to
1024*1024 in Flux2Pipeline, Flux2KleinPipeline and Flux2KleinKVPipeline,
silently downscaling any reference image above ~1MP. Expose it as a
max_area __call__ argument (default unchanged), mirroring the existing
max_area parameter of FluxKontextPipeline.1 parent cbdb637 commit de10be4
3 files changed
Lines changed: 18 additions & 6 deletions
File tree
- src/diffusers/pipelines/flux2
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
765 | 765 | | |
766 | 766 | | |
767 | 767 | | |
| 768 | + | |
768 | 769 | | |
769 | 770 | | |
770 | 771 | | |
| |||
832 | 833 | | |
833 | 834 | | |
834 | 835 | | |
| 836 | + | |
| 837 | + | |
| 838 | + | |
835 | 839 | | |
836 | 840 | | |
837 | 841 | | |
| |||
891 | 895 | | |
892 | 896 | | |
893 | 897 | | |
894 | | - | |
895 | | - | |
| 898 | + | |
| 899 | + | |
896 | 900 | | |
897 | 901 | | |
898 | 902 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
632 | 632 | | |
633 | 633 | | |
634 | 634 | | |
| 635 | + | |
635 | 636 | | |
636 | 637 | | |
637 | 638 | | |
| |||
700 | 701 | | |
701 | 702 | | |
702 | 703 | | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
703 | 707 | | |
704 | 708 | | |
705 | 709 | | |
| |||
769 | 773 | | |
770 | 774 | | |
771 | 775 | | |
772 | | - | |
773 | | - | |
| 776 | + | |
| 777 | + | |
774 | 778 | | |
775 | 779 | | |
776 | 780 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
| 630 | + | |
630 | 631 | | |
631 | 632 | | |
632 | 633 | | |
| |||
668 | 669 | | |
669 | 670 | | |
670 | 671 | | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
671 | 675 | | |
672 | 676 | | |
673 | 677 | | |
| |||
720 | 724 | | |
721 | 725 | | |
722 | 726 | | |
723 | | - | |
724 | | - | |
| 727 | + | |
| 728 | + | |
725 | 729 | | |
726 | 730 | | |
727 | 731 | | |
| |||
0 commit comments