Skip to content

Commit c9ebcbe

Browse files
committed
style: format code using black and doc-builder
1 parent b065c76 commit c9ebcbe

File tree

7 files changed

+23
-25
lines changed

7 files changed

+23
-25
lines changed

src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,10 +495,10 @@ def __call__(
495495
`Image`, or tensor representing an image batch, that will be used as the starting point for the
496496
process.
497497
strength (`float`, *optional*, defaults to 0.8):
498-
Conceptually, indicates how much to transform the reference `image`. Must be between 0 and 1.
499-
`image` will be used as a starting point, adding more noise to it the larger the `strength`. The
500-
number of denoising steps depends on the amount of noise initially added. When `strength` is 1, added
501-
noise will be maximum and the denoising process will run for the full number of iterations specified in
498+
Conceptually, indicates how much to transform the reference `image`. Must be between 0 and 1. `image`
499+
will be used as a starting point, adding more noise to it the larger the `strength`. The number of
500+
denoising steps depends on the amount of noise initially added. When `strength` is 1, added noise will
501+
be maximum and the denoising process will run for the full number of iterations specified in
502502
`num_inference_steps`. A value of 1, therefore, essentially ignores `image`.
503503
num_inference_steps (`int`, *optional*, defaults to 50):
504504
The number of denoising steps. More denoising steps usually lead to a higher quality image at the

src/diffusers/pipelines/latent_diffusion/pipeline_latent_diffusion_superresolution.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ def __call__(
108108
elif isinstance(image, torch.Tensor):
109109
batch_size = image.shape[0]
110110
else:
111-
raise ValueError(
112-
f"`image` has to be of type `PIL.Image.Image` or `torch.Tensor` but is {type(image)}"
113-
)
111+
raise ValueError(f"`image` has to be of type `PIL.Image.Image` or `torch.Tensor` but is {type(image)}")
114112

115113
if isinstance(image, PIL.Image.Image):
116114
image = preprocess(image)

src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -539,10 +539,10 @@ def __call__(
539539
`Image`, or tensor representing an image batch, that will be used as the starting point for the
540540
process.
541541
strength (`float`, *optional*, defaults to 0.8):
542-
Conceptually, indicates how much to transform the reference `image`. Must be between 0 and 1.
543-
`image` will be used as a starting point, adding more noise to it the larger the `strength`. The
544-
number of denoising steps depends on the amount of noise initially added. When `strength` is 1, added
545-
noise will be maximum and the denoising process will run for the full number of iterations specified in
542+
Conceptually, indicates how much to transform the reference `image`. Must be between 0 and 1. `image`
543+
will be used as a starting point, adding more noise to it the larger the `strength`. The number of
544+
denoising steps depends on the amount of noise initially added. When `strength` is 1, added noise will
545+
be maximum and the denoising process will run for the full number of iterations specified in
546546
`num_inference_steps`. A value of 1, therefore, essentially ignores `image`.
547547
num_inference_steps (`int`, *optional*, defaults to 50):
548548
The number of denoising steps. More denoising steps usually lead to a higher quality image at the

src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_img2img.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,10 +252,10 @@ def __call__(
252252
`Image`, or tensor representing an image batch, that will be used as the starting point for the
253253
process.
254254
strength (`float`, *optional*, defaults to 0.8):
255-
Conceptually, indicates how much to transform the reference `image`. Must be between 0 and 1.
256-
`image` will be used as a starting point, adding more noise to it the larger the `strength`. The
257-
number of denoising steps depends on the amount of noise initially added. When `strength` is 1, added
258-
noise will be maximum and the denoising process will run for the full number of iterations specified in
255+
Conceptually, indicates how much to transform the reference `image`. Must be between 0 and 1. `image`
256+
will be used as a starting point, adding more noise to it the larger the `strength`. The number of
257+
denoising steps depends on the amount of noise initially added. When `strength` is 1, added noise will
258+
be maximum and the denoising process will run for the full number of iterations specified in
259259
`num_inference_steps`. A value of 1, therefore, essentially ignores `image`.
260260
num_inference_steps (`int`, *optional*, defaults to 50):
261261
The number of denoising steps. More denoising steps usually lead to a higher quality image at the

src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_inpaint_legacy.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -257,10 +257,10 @@ def __call__(
257257
PIL image, it will be converted to a single channel (luminance) before use. If it's a tensor, it should
258258
contain one color channel (L) instead of 3, so the expected shape would be `(B, H, W, 1)`.uu
259259
strength (`float`, *optional*, defaults to 0.8):
260-
Conceptually, indicates how much to transform the reference `image`. Must be between 0 and 1.
261-
`image` will be used as a starting point, adding more noise to it the larger the `strength`. The
262-
number of denoising steps depends on the amount of noise initially added. When `strength` is 1, added
263-
noise will be maximum and the denoising process will run for the full number of iterations specified in
260+
Conceptually, indicates how much to transform the reference `image`. Must be between 0 and 1. `image`
261+
will be used as a starting point, adding more noise to it the larger the `strength`. The number of
262+
denoising steps depends on the amount of noise initially added. When `strength` is 1, added noise will
263+
be maximum and the denoising process will run for the full number of iterations specified in
264264
`num_inference_steps`. A value of 1, therefore, essentially ignores `image`.
265265
num_inference_steps (`int`, *optional*, defaults to 50):
266266
The number of denoising steps. More denoising steps usually lead to a higher quality image at the

src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -504,10 +504,10 @@ def __call__(
504504
`Image`, or tensor representing an image batch, that will be used as the starting point for the
505505
process.
506506
strength (`float`, *optional*, defaults to 0.8):
507-
Conceptually, indicates how much to transform the reference `image`. Must be between 0 and 1.
508-
`image` will be used as a starting point, adding more noise to it the larger the `strength`. The
509-
number of denoising steps depends on the amount of noise initially added. When `strength` is 1, added
510-
noise will be maximum and the denoising process will run for the full number of iterations specified in
507+
Conceptually, indicates how much to transform the reference `image`. Must be between 0 and 1. `image`
508+
will be used as a starting point, adding more noise to it the larger the `strength`. The number of
509+
denoising steps depends on the amount of noise initially added. When `strength` is 1, added noise will
510+
be maximum and the denoising process will run for the full number of iterations specified in
511511
`num_inference_steps`. A value of 1, therefore, essentially ignores `image`.
512512
num_inference_steps (`int`, *optional*, defaults to 50):
513513
The number of denoising steps. More denoising steps usually lead to a higher quality image at the

src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint_legacy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -510,8 +510,8 @@ def __call__(
510510
strength (`float`, *optional*, defaults to 0.8):
511511
Conceptually, indicates how much to inpaint the masked area. Must be between 0 and 1. When `strength`
512512
is 1, the denoising process will be run on the masked area for the full number of iterations specified
513-
in `num_inference_steps`. `image` will be used as a reference for the masked area, adding more
514-
noise to that region the larger the `strength`. If `strength` is 0, no inpainting will occur.
513+
in `num_inference_steps`. `image` will be used as a reference for the masked area, adding more noise to
514+
that region the larger the `strength`. If `strength` is 0, no inpainting will occur.
515515
num_inference_steps (`int`, *optional*, defaults to 50):
516516
The reference number of denoising steps. More denoising steps usually lead to a higher quality image at
517517
the expense of slower inference. This parameter will be modulated by `strength`, as explained above.

0 commit comments

Comments
 (0)