Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenDAS
diffusers
Commits
20e92586
Unverified
Commit
20e92586
authored
Jul 26, 2023
by
Patrick von Platen
Committed by
GitHub
Jul 26, 2023
Browse files
0.20.0dev0 (#4299)
* 0.20.0dev0 * make style
parent
5623ea06
Changes
68
Show whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
22 additions
and
22 deletions
+22
-22
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py
...es/deepfloyd_if/pipeline_if_inpainting_superresolution.py
+1
-1
src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py
...ers/pipelines/deepfloyd_if/pipeline_if_superresolution.py
+1
-1
src/diffusers/pipelines/pipeline_utils.py
src/diffusers/pipelines/pipeline_utils.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py
...rs/pipelines/stable_diffusion/pipeline_cycle_diffusion.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py
...s/pipelines/stable_diffusion/pipeline_stable_diffusion.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py
..._diffusion/pipeline_stable_diffusion_attend_and_excite.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py
...s/stable_diffusion/pipeline_stable_diffusion_depth2img.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py
...es/stable_diffusion/pipeline_stable_diffusion_diffedit.py
+3
-3
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py
...nes/stable_diffusion/pipeline_stable_diffusion_img2img.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py
...nes/stable_diffusion/pipeline_stable_diffusion_inpaint.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint_legacy.py
...ble_diffusion/pipeline_stable_diffusion_inpaint_legacy.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_ldm3d.py
...lines/stable_diffusion/pipeline_stable_diffusion_ldm3d.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_model_editing.py
...able_diffusion/pipeline_stable_diffusion_model_editing.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_panorama.py
...es/stable_diffusion/pipeline_stable_diffusion_panorama.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_paradigms.py
...s/stable_diffusion/pipeline_stable_diffusion_paradigms.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_sag.py
...pelines/stable_diffusion/pipeline_stable_diffusion_sag.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py
...nes/stable_diffusion/pipeline_stable_diffusion_upscale.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py
...sers/pipelines/stable_diffusion/pipeline_stable_unclip.py
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py
...elines/stable_diffusion/pipeline_stable_unclip_img2img.py
+1
-1
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py
...lines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py
+1
-1
No files found.
src/diffusers/pipelines/deepfloyd_if/pipeline_if_inpainting_superresolution.py
View file @
20e92586
...
@@ -961,7 +961,7 @@ class IFInpaintingSuperResolutionPipeline(DiffusionPipeline, LoraLoaderMixin):
...
@@ -961,7 +961,7 @@ class IFInpaintingSuperResolutionPipeline(DiffusionPipeline, LoraLoaderMixin):
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the `AttentionProcessor` as defined under
A kwargs dictionary that if specified is passed along to the `AttentionProcessor` as defined under
`self.processor` in
`self.processor` in
[diffusers.
cross_
attention](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[diffusers.
models.
attention
_processor
](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
noise_level (`int`, *optional*, defaults to 0):
noise_level (`int`, *optional*, defaults to 0):
The amount of noise to add to the upscaled image. Must be in the range `[0, 1000)`
The amount of noise to add to the upscaled image. Must be in the range `[0, 1000)`
clean_caption (`bool`, *optional*, defaults to `True`):
clean_caption (`bool`, *optional*, defaults to `True`):
...
...
src/diffusers/pipelines/deepfloyd_if/pipeline_if_superresolution.py
View file @
20e92586
...
@@ -730,7 +730,7 @@ class IFSuperResolutionPipeline(DiffusionPipeline, LoraLoaderMixin):
...
@@ -730,7 +730,7 @@ class IFSuperResolutionPipeline(DiffusionPipeline, LoraLoaderMixin):
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the `AttentionProcessor` as defined under
A kwargs dictionary that if specified is passed along to the `AttentionProcessor` as defined under
`self.processor` in
`self.processor` in
[diffusers.
cross_
attention](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[diffusers.
models.
attention
_processor
](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
noise_level (`int`, *optional*, defaults to 250):
noise_level (`int`, *optional*, defaults to 250):
The amount of noise to add to the upscaled image. Must be in the range `[0, 1000)`
The amount of noise to add to the upscaled image. Must be in the range `[0, 1000)`
clean_caption (`bool`, *optional*, defaults to `True`):
clean_caption (`bool`, *optional*, defaults to `True`):
...
...
src/diffusers/pipelines/pipeline_utils.py
View file @
20e92586
...
@@ -1359,7 +1359,7 @@ class DiffusionPipeline(ConfigMixin):
...
@@ -1359,7 +1359,7 @@ class DiffusionPipeline(ConfigMixin):
# if the whole pipeline is cached we don't have to ping the Hub
# if the whole pipeline is cached we don't have to ping the Hub
if
revision
in
DEPRECATED_REVISION_ARGS
and
version
.
parse
(
if
revision
in
DEPRECATED_REVISION_ARGS
and
version
.
parse
(
version
.
parse
(
__version__
).
base_version
version
.
parse
(
__version__
).
base_version
)
>=
version
.
parse
(
"0.2
0
.0"
):
)
>=
version
.
parse
(
"0.2
2
.0"
):
warn_deprecated_model_variant
(
warn_deprecated_model_variant
(
pretrained_model_name
,
use_auth_token
,
variant
,
revision
,
model_filenames
pretrained_model_name
,
use_auth_token
,
variant
,
revision
,
model_filenames
)
)
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py
View file @
20e92586
...
@@ -644,7 +644,7 @@ class CycleDiffusionPipeline(DiffusionPipeline, TextualInversionLoaderMixin, Lor
...
@@ -644,7 +644,7 @@ class CycleDiffusionPipeline(DiffusionPipeline, TextualInversionLoaderMixin, Lor
every step.
every step.
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
Example:
Example:
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py
View file @
20e92586
...
@@ -585,7 +585,7 @@ class StableDiffusionPipeline(DiffusionPipeline, TextualInversionLoaderMixin, Lo
...
@@ -585,7 +585,7 @@ class StableDiffusionPipeline(DiffusionPipeline, TextualInversionLoaderMixin, Lo
every step.
every step.
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
guidance_rescale (`float`, *optional*, defaults to 0.7):
guidance_rescale (`float`, *optional*, defaults to 0.7):
Guidance rescale factor from [Common Diffusion Noise Schedules and Sample Steps are
Guidance rescale factor from [Common Diffusion Noise Schedules and Sample Steps are
Flawed](https://arxiv.org/pdf/2305.08891.pdf). Guidance rescale factor should fix overexposure when
Flawed](https://arxiv.org/pdf/2305.08891.pdf). Guidance rescale factor should fix overexposure when
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_attend_and_excite.py
View file @
20e92586
...
@@ -750,7 +750,7 @@ class StableDiffusionAttendAndExcitePipeline(DiffusionPipeline, TextualInversion
...
@@ -750,7 +750,7 @@ class StableDiffusionAttendAndExcitePipeline(DiffusionPipeline, TextualInversion
every step.
every step.
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
max_iter_to_alter (`int`, *optional*, defaults to `25`):
max_iter_to_alter (`int`, *optional*, defaults to `25`):
Number of denoising steps to apply attend-and-excite. The `max_iter_to_alter` denoising steps are when
Number of denoising steps to apply attend-and-excite. The `max_iter_to_alter` denoising steps are when
attend-and-excite is applied. For example, if `max_iter_to_alter` is `25` and there are a total of `30`
attend-and-excite is applied. For example, if `max_iter_to_alter` is `25` and there are a total of `30`
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_depth2img.py
View file @
20e92586
...
@@ -570,7 +570,7 @@ class StableDiffusionDepth2ImgPipeline(DiffusionPipeline, TextualInversionLoader
...
@@ -570,7 +570,7 @@ class StableDiffusionDepth2ImgPipeline(DiffusionPipeline, TextualInversionLoader
every step.
every step.
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
Examples:
Examples:
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_diffedit.py
View file @
20e92586
...
@@ -902,7 +902,7 @@ class StableDiffusionDiffEditPipeline(DiffusionPipeline, TextualInversionLoaderM
...
@@ -902,7 +902,7 @@ class StableDiffusionDiffEditPipeline(DiffusionPipeline, TextualInversionLoaderM
The output format of the generated image. Choose between `PIL.Image` or `np.array`.
The output format of the generated image. Choose between `PIL.Image` or `np.array`.
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
Examples:
Examples:
...
@@ -1110,7 +1110,7 @@ class StableDiffusionDiffEditPipeline(DiffusionPipeline, TextualInversionLoaderM
...
@@ -1110,7 +1110,7 @@ class StableDiffusionDiffEditPipeline(DiffusionPipeline, TextualInversionLoaderM
every step.
every step.
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
lambda_auto_corr (`float`, *optional*, defaults to 20.0):
lambda_auto_corr (`float`, *optional*, defaults to 20.0):
Lambda parameter to control auto correction.
Lambda parameter to control auto correction.
lambda_kl (`float`, *optional*, defaults to 20.0):
lambda_kl (`float`, *optional*, defaults to 20.0):
...
@@ -1352,7 +1352,7 @@ class StableDiffusionDiffEditPipeline(DiffusionPipeline, TextualInversionLoaderM
...
@@ -1352,7 +1352,7 @@ class StableDiffusionDiffEditPipeline(DiffusionPipeline, TextualInversionLoaderM
every step.
every step.
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
Examples:
Examples:
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py
View file @
20e92586
...
@@ -640,7 +640,7 @@ class StableDiffusionImg2ImgPipeline(
...
@@ -640,7 +640,7 @@ class StableDiffusionImg2ImgPipeline(
every step.
every step.
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
Examples:
Examples:
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py
View file @
20e92586
...
@@ -756,7 +756,7 @@ class StableDiffusionInpaintPipeline(
...
@@ -756,7 +756,7 @@ class StableDiffusionInpaintPipeline(
every step.
every step.
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
Examples:
Examples:
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint_legacy.py
View file @
20e92586
...
@@ -606,7 +606,7 @@ class StableDiffusionInpaintPipelineLegacy(
...
@@ -606,7 +606,7 @@ class StableDiffusionInpaintPipelineLegacy(
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the `AttentionProcessor` as defined under
A kwargs dictionary that if specified is passed along to the `AttentionProcessor` as defined under
`self.processor` in
`self.processor` in
[diffusers.
cross_
attention](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[diffusers.
models.
attention
_processor
](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
Returns:
Returns:
[`~pipelines.stable_diffusion.StableDiffusionPipelineOutput`] or `tuple`:
[`~pipelines.stable_diffusion.StableDiffusionPipelineOutput`] or `tuple`:
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_ldm3d.py
View file @
20e92586
...
@@ -541,7 +541,7 @@ class StableDiffusionLDM3DPipeline(
...
@@ -541,7 +541,7 @@ class StableDiffusionLDM3DPipeline(
every step.
every step.
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
Examples:
Examples:
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_model_editing.py
View file @
20e92586
...
@@ -617,7 +617,7 @@ class StableDiffusionModelEditingPipeline(DiffusionPipeline, TextualInversionLoa
...
@@ -617,7 +617,7 @@ class StableDiffusionModelEditingPipeline(DiffusionPipeline, TextualInversionLoa
every step.
every step.
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
Examples:
Examples:
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_panorama.py
View file @
20e92586
...
@@ -517,7 +517,7 @@ class StableDiffusionPanoramaPipeline(DiffusionPipeline, TextualInversionLoaderM
...
@@ -517,7 +517,7 @@ class StableDiffusionPanoramaPipeline(DiffusionPipeline, TextualInversionLoaderM
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the `AttentionProcessor` as defined under
A kwargs dictionary that if specified is passed along to the `AttentionProcessor` as defined under
`self.processor` in
`self.processor` in
[diffusers.
cross_
attention](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[diffusers.
models.
attention
_processor
](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
circular_padding (`bool`, *optional*, defaults to `False`):
circular_padding (`bool`, *optional*, defaults to `False`):
If set to `True`, circular padding is applied to ensure there are no stitching artifacts. Circular
If set to `True`, circular padding is applied to ensure there are no stitching artifacts. Circular
padding allows the model to seamlessly generate a transition from the rightmost part of the image to
padding allows the model to seamlessly generate a transition from the rightmost part of the image to
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_paradigms.py
View file @
20e92586
...
@@ -546,7 +546,7 @@ class StableDiffusionParadigmsPipeline(
...
@@ -546,7 +546,7 @@ class StableDiffusionParadigmsPipeline(
every step.
every step.
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
debug (`bool`, *optional*, defaults to `False`):
debug (`bool`, *optional*, defaults to `False`):
Whether or not to run in debug mode. In debug mode, `torch.cumsum` is evaluated using the CPU.
Whether or not to run in debug mode. In debug mode, `torch.cumsum` is evaluated using the CPU.
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_sag.py
View file @
20e92586
...
@@ -503,7 +503,7 @@ class StableDiffusionSAGPipeline(DiffusionPipeline, TextualInversionLoaderMixin)
...
@@ -503,7 +503,7 @@ class StableDiffusionSAGPipeline(DiffusionPipeline, TextualInversionLoaderMixin)
every step.
every step.
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
Examples:
Examples:
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py
View file @
20e92586
...
@@ -558,7 +558,7 @@ class StableDiffusionUpscalePipeline(DiffusionPipeline, TextualInversionLoaderMi
...
@@ -558,7 +558,7 @@ class StableDiffusionUpscalePipeline(DiffusionPipeline, TextualInversionLoaderMi
every step.
every step.
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
Examples:
Examples:
```py
```py
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip.py
View file @
20e92586
...
@@ -684,7 +684,7 @@ class StableUnCLIPPipeline(DiffusionPipeline, TextualInversionLoaderMixin, LoraL
...
@@ -684,7 +684,7 @@ class StableUnCLIPPipeline(DiffusionPipeline, TextualInversionLoaderMixin, LoraL
every step.
every step.
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
noise_level (`int`, *optional*, defaults to `0`):
noise_level (`int`, *optional*, defaults to `0`):
The amount of noise to add to the image embeddings. A higher `noise_level` increases the variance in
The amount of noise to add to the image embeddings. A higher `noise_level` increases the variance in
the final un-noised images. See [`StableUnCLIPPipeline.noise_image_embeddings`] for more details.
the final un-noised images. See [`StableUnCLIPPipeline.noise_image_embeddings`] for more details.
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_unclip_img2img.py
View file @
20e92586
...
@@ -654,7 +654,7 @@ class StableUnCLIPImg2ImgPipeline(DiffusionPipeline, TextualInversionLoaderMixin
...
@@ -654,7 +654,7 @@ class StableUnCLIPImg2ImgPipeline(DiffusionPipeline, TextualInversionLoaderMixin
every step.
every step.
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
A kwargs dictionary that if specified is passed along to the [`AttentionProcessor`] as defined in
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[`self.processor`](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
noise_level (`int`, *optional*, defaults to `0`):
noise_level (`int`, *optional*, defaults to `0`):
The amount of noise to add to the image embeddings. A higher `noise_level` increases the variance in
The amount of noise to add to the image embeddings. A higher `noise_level` increases the variance in
the final un-noised images. See [`StableUnCLIPPipeline.noise_image_embeddings`] for more details.
the final un-noised images. See [`StableUnCLIPPipeline.noise_image_embeddings`] for more details.
...
...
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl.py
View file @
20e92586
...
@@ -653,7 +653,7 @@ class StableDiffusionXLPipeline(DiffusionPipeline, FromSingleFileMixin, LoraLoad
...
@@ -653,7 +653,7 @@ class StableDiffusionXLPipeline(DiffusionPipeline, FromSingleFileMixin, LoraLoad
cross_attention_kwargs (`dict`, *optional*):
cross_attention_kwargs (`dict`, *optional*):
A kwargs dictionary that if specified is passed along to the `AttentionProcessor` as defined under
A kwargs dictionary that if specified is passed along to the `AttentionProcessor` as defined under
`self.processor` in
`self.processor` in
[diffusers.
cross_
attention](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/
cross_
attention.py).
[diffusers.
models.
attention
_processor
](https://github.com/huggingface/diffusers/blob/main/src/diffusers/models/attention
_processor
.py).
guidance_rescale (`float`, *optional*, defaults to 0.7):
guidance_rescale (`float`, *optional*, defaults to 0.7):
Guidance rescale factor proposed by [Common Diffusion Noise Schedules and Sample Steps are
Guidance rescale factor proposed by [Common Diffusion Noise Schedules and Sample Steps are
Flawed](https://arxiv.org/pdf/2305.08891.pdf) `guidance_scale` is defined as `φ` in equation 16. of
Flawed](https://arxiv.org/pdf/2305.08891.pdf) `guidance_scale` is defined as `φ` in equation 16. of
...
...
Prev
1
2
3
4
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment