Skip to content

Commit 539846a

Browse files
bghirabghirapatrickvonplaten
authored
SDXL microconditioning documentation should indicate the correct default order of parameters, so that developers know (huggingface#5155)
* SDXL microconditioning documentation should indicate the correct default order of parameters, so that developers know * SDXL microconditioning documentation should indicate the correct default order of parameters, so that developers know * empty --------- Co-authored-by: bghira <[email protected]> Co-authored-by: Patrick von Platen <[email protected]>
1 parent d70944b commit 539846a

File tree

8 files changed

+16
-16
lines changed

8 files changed

+16
-16
lines changed

examples/community/lpw_stable_diffusion_xl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,7 +1029,7 @@ def __call__(
10291029
Guidance rescale factor should fix overexposure when using zero terminal SNR.
10301030
original_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
10311031
If `original_size` is not the same as `target_size` the image will appear to be down- or upsampled.
1032-
`original_size` defaults to `(width, height)` if not specified. Part of SDXL's micro-conditioning as
1032+
`original_size` defaults to `(height, width)` if not specified. Part of SDXL's micro-conditioning as
10331033
explained in section 2.2 of
10341034
[https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
10351035
crops_coords_top_left (`Tuple[int]`, *optional*, defaults to (0, 0)):
@@ -1039,7 +1039,7 @@ def __call__(
10391039
[https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
10401040
target_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
10411041
For most cases, `target_size` should be set to the desired height and width of the generated image. If
1042-
not specified it will default to `(width, height)`. Part of SDXL's micro-conditioning as explained in
1042+
not specified it will default to `(height, width)`. Part of SDXL's micro-conditioning as explained in
10431043
section 2.2 of [https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
10441044
10451045
Examples:

src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ def __call__(
863863
The percentage of total steps at which the ControlNet stops applying.
864864
original_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
865865
If `original_size` is not the same as `target_size` the image will appear to be down- or upsampled.
866-
`original_size` defaults to `(width, height)` if not specified. Part of SDXL's micro-conditioning as
866+
`original_size` defaults to `(height, width)` if not specified. Part of SDXL's micro-conditioning as
867867
explained in section 2.2 of
868868
[https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
869869
crops_coords_top_left (`Tuple[int]`, *optional*, defaults to (0, 0)):
@@ -873,7 +873,7 @@ def __call__(
873873
[https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
874874
target_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
875875
For most cases, `target_size` should be set to the desired height and width of the generated image. If
876-
not specified it will default to `(width, height)`. Part of SDXL's micro-conditioning as explained in
876+
not specified it will default to `(height, width)`. Part of SDXL's micro-conditioning as explained in
877877
section 2.2 of [https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
878878
negative_original_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
879879
To negatively condition the generation process based on a specific image resolution. Part of SDXL's

src/diffusers/pipelines/controlnet/pipeline_controlnet_sd_xl_img2img.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ def __call__(
10281028
The percentage of total steps at which the controlnet stops applying.
10291029
original_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
10301030
If `original_size` is not the same as `target_size` the image will appear to be down- or upsampled.
1031-
`original_size` defaults to `(width, height)` if not specified. Part of SDXL's micro-conditioning as
1031+
`original_size` defaults to `(height, width)` if not specified. Part of SDXL's micro-conditioning as
10321032
explained in section 2.2 of
10331033
[https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
10341034
crops_coords_top_left (`Tuple[int]`, *optional*, defaults to (0, 0)):
@@ -1038,7 +1038,7 @@ def __call__(
10381038
[https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
10391039
target_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
10401040
For most cases, `target_size` should be set to the desired height and width of the generated image. If
1041-
not specified it will default to `(width, height)`. Part of SDXL's micro-conditioning as explained in
1041+
not specified it will default to `(height, width)`. Part of SDXL's micro-conditioning as explained in
10421042
section 2.2 of [https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
10431043
negative_original_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
10441044
To negatively condition the generation process based on a specific image resolution. Part of SDXL's

src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -676,7 +676,7 @@ def __call__(
676676
Guidance rescale factor should fix overexposure when using zero terminal SNR.
677677
original_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
678678
If `original_size` is not the same as `target_size` the image will appear to be down- or upsampled.
679-
`original_size` defaults to `(width, height)` if not specified. Part of SDXL's micro-conditioning as
679+
`original_size` defaults to `(height, width)` if not specified. Part of SDXL's micro-conditioning as
680680
explained in section 2.2 of
681681
[https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
682682
crops_coords_top_left (`Tuple[int]`, *optional*, defaults to (0, 0)):
@@ -686,7 +686,7 @@ def __call__(
686686
[https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
687687
target_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
688688
For most cases, `target_size` should be set to the desired height and width of the generated image. If
689-
not specified it will default to `(width, height)`. Part of SDXL's micro-conditioning as explained in
689+
not specified it will default to `(height, width)`. Part of SDXL's micro-conditioning as explained in
690690
section 2.2 of [https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
691691
negative_original_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
692692
To negatively condition the generation process based on a specific image resolution. Part of SDXL's

src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_img2img.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -794,7 +794,7 @@ def __call__(
794794
Guidance rescale factor should fix overexposure when using zero terminal SNR.
795795
original_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
796796
If `original_size` is not the same as `target_size` the image will appear to be down- or upsampled.
797-
`original_size` defaults to `(width, height)` if not specified. Part of SDXL's micro-conditioning as
797+
`original_size` defaults to `(height, width)` if not specified. Part of SDXL's micro-conditioning as
798798
explained in section 2.2 of
799799
[https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
800800
crops_coords_top_left (`Tuple[int]`, *optional*, defaults to (0, 0)):
@@ -804,7 +804,7 @@ def __call__(
804804
[https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
805805
target_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
806806
For most cases, `target_size` should be set to the desired height and width of the generated image. If
807-
not specified it will default to `(width, height)`. Part of SDXL's micro-conditioning as explained in
807+
not specified it will default to `(height, width)`. Part of SDXL's micro-conditioning as explained in
808808
section 2.2 of [https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
809809
negative_original_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
810810
To negatively condition the generation process based on a specific image resolution. Part of SDXL's

src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ def __call__(
10281028
[diffusers.models.attention_processor](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention_processor.py).
10291029
original_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
10301030
If `original_size` is not the same as `target_size` the image will appear to be down- or upsampled.
1031-
`original_size` defaults to `(width, height)` if not specified. Part of SDXL's micro-conditioning as
1031+
`original_size` defaults to `(height, width)` if not specified. Part of SDXL's micro-conditioning as
10321032
explained in section 2.2 of
10331033
[https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
10341034
crops_coords_top_left (`Tuple[int]`, *optional*, defaults to (0, 0)):
@@ -1038,7 +1038,7 @@ def __call__(
10381038
[https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
10391039
target_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
10401040
For most cases, `target_size` should be set to the desired height and width of the generated image. If
1041-
not specified it will default to `(width, height)`. Part of SDXL's micro-conditioning as explained in
1041+
not specified it will default to `(height, width)`. Part of SDXL's micro-conditioning as explained in
10421042
section 2.2 of [https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
10431043
negative_original_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
10441044
To negatively condition the generation process based on a specific image resolution. Part of SDXL's

src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_instruct_pix2pix.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -706,7 +706,7 @@ def __call__(
706706
Guidance rescale factor should fix overexposure when using zero terminal SNR.
707707
original_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
708708
If `original_size` is not the same as `target_size` the image will appear to be down- or upsampled.
709-
`original_size` defaults to `(width, height)` if not specified. Part of SDXL's micro-conditioning as
709+
`original_size` defaults to `(height, width)` if not specified. Part of SDXL's micro-conditioning as
710710
explained in section 2.2 of
711711
[https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
712712
crops_coords_top_left (`Tuple[int]`, *optional*, defaults to (0, 0)):
@@ -716,7 +716,7 @@ def __call__(
716716
[https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
717717
target_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
718718
For most cases, `target_size` should be set to the desired height and width of the generated image. If
719-
not specified it will default to `(width, height)`. Part of SDXL's micro-conditioning as explained in
719+
not specified it will default to `(height, width)`. Part of SDXL's micro-conditioning as explained in
720720
section 2.2 of [https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
721721
aesthetic_score (`float`, *optional*, defaults to 6.0):
722722
Used to simulate an aesthetic score of the generated image by influencing the positive text condition.

src/diffusers/pipelines/t2i_adapter/pipeline_stable_diffusion_xl_adapter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -734,7 +734,7 @@ def __call__(
734734
Guidance rescale factor should fix overexposure when using zero terminal SNR.
735735
original_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
736736
If `original_size` is not the same as `target_size` the image will appear to be down- or upsampled.
737-
`original_size` defaults to `(width, height)` if not specified. Part of SDXL's micro-conditioning as
737+
`original_size` defaults to `(height, width)` if not specified. Part of SDXL's micro-conditioning as
738738
explained in section 2.2 of
739739
[https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
740740
crops_coords_top_left (`Tuple[int]`, *optional*, defaults to (0, 0)):
@@ -744,7 +744,7 @@ def __call__(
744744
[https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
745745
target_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):
746746
For most cases, `target_size` should be set to the desired height and width of the generated image. If
747-
not specified it will default to `(width, height)`. Part of SDXL's micro-conditioning as explained in
747+
not specified it will default to `(height, width)`. Part of SDXL's micro-conditioning as explained in
748748
section 2.2 of [https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
749749
section 2.2 of [https://huggingface.co/papers/2307.01952](https://huggingface.co/papers/2307.01952).
750750
negative_original_size (`Tuple[int]`, *optional*, defaults to (1024, 1024)):

0 commit comments

Comments
 (0)