Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
1b456bd5
Unverified
Commit
1b456bd5
authored
Oct 17, 2025
by
Ali Imran
Committed by
GitHub
Oct 17, 2025
Browse files
docs: cleanup of runway model (#12503)
* cleanup of runway model * quality fixes
parent
af769881
Changes
98
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
38 additions
and
38 deletions
+38
-38
examples/community/hd_painter.py
examples/community/hd_painter.py
+1
-1
examples/community/img2img_inpainting.py
examples/community/img2img_inpainting.py
+1
-1
examples/community/instaflow_one_step.py
examples/community/instaflow_one_step.py
+3
-3
examples/community/ip_adapter_face_id.py
examples/community/ip_adapter_face_id.py
+3
-3
examples/community/kohya_hires_fix.py
examples/community/kohya_hires_fix.py
+1
-1
examples/community/latent_consistency_interpolate.py
examples/community/latent_consistency_interpolate.py
+1
-1
examples/community/llm_grounded_diffusion.py
examples/community/llm_grounded_diffusion.py
+3
-3
examples/community/lpw_stable_diffusion.py
examples/community/lpw_stable_diffusion.py
+2
-2
examples/community/lpw_stable_diffusion_xl.py
examples/community/lpw_stable_diffusion_xl.py
+1
-1
examples/community/matryoshka.py
examples/community/matryoshka.py
+2
-2
examples/community/multilingual_stable_diffusion.py
examples/community/multilingual_stable_diffusion.py
+1
-1
examples/community/pipeline_controlnet_xl_kolors_inpaint.py
examples/community/pipeline_controlnet_xl_kolors_inpaint.py
+1
-1
examples/community/pipeline_fabric.py
examples/community/pipeline_fabric.py
+3
-3
examples/community/pipeline_kolors_inpainting.py
examples/community/pipeline_kolors_inpainting.py
+1
-1
examples/community/pipeline_prompt2prompt.py
examples/community/pipeline_prompt2prompt.py
+3
-3
examples/community/pipeline_sdxl_style_aligned.py
examples/community/pipeline_sdxl_style_aligned.py
+1
-1
examples/community/pipeline_stable_diffusion_boxdiff.py
examples/community/pipeline_stable_diffusion_boxdiff.py
+4
-4
examples/community/pipeline_stable_diffusion_pag.py
examples/community/pipeline_stable_diffusion_pag.py
+4
-4
examples/community/pipeline_stable_diffusion_upscale_ldm3d.py
...ples/community/pipeline_stable_diffusion_upscale_ldm3d.py
+1
-1
examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py
...ommunity/pipeline_stable_diffusion_xl_attentive_eraser.py
+1
-1
No files found.
examples/community/hd_painter.py
View file @
1b456bd5
...
@@ -678,7 +678,7 @@ class StableDiffusionHDPainterPipeline(StableDiffusionInpaintPipeline):
...
@@ -678,7 +678,7 @@ class StableDiffusionHDPainterPipeline(StableDiffusionInpaintPipeline):
# 8. Check that sizes of mask, masked image and latents match
# 8. Check that sizes of mask, masked image and latents match
if
num_channels_unet
==
9
:
if
num_channels_unet
==
9
:
# default case for
runwayml
/stable-diffusion-inpainting
# default case for
stable-diffusion-v1-5
/stable-diffusion-inpainting
num_channels_mask
=
mask
.
shape
[
1
]
num_channels_mask
=
mask
.
shape
[
1
]
num_channels_masked_image
=
masked_image_latents
.
shape
[
1
]
num_channels_masked_image
=
masked_image_latents
.
shape
[
1
]
if
num_channels_latents
+
num_channels_mask
+
num_channels_masked_image
!=
self
.
unet
.
config
.
in_channels
:
if
num_channels_latents
+
num_channels_mask
+
num_channels_masked_image
!=
self
.
unet
.
config
.
in_channels
:
...
...
examples/community/img2img_inpainting.py
View file @
1b456bd5
...
@@ -78,7 +78,7 @@ class ImageToImageInpaintingPipeline(DiffusionPipeline):
...
@@ -78,7 +78,7 @@ class ImageToImageInpaintingPipeline(DiffusionPipeline):
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
safety_checker ([`StableDiffusionSafetyChecker`]):
safety_checker ([`StableDiffusionSafetyChecker`]):
Classification module that estimates whether generated images could be considered offensive or harmful.
Classification module that estimates whether generated images could be considered offensive or harmful.
Please, refer to the [model card](https://huggingface.co/
runwayml
/stable-diffusion-v1-5) for details.
Please, refer to the [model card](https://huggingface.co/
stable-diffusion-v1-5
/stable-diffusion-v1-5) for details.
feature_extractor ([`CLIPImageProcessor`]):
feature_extractor ([`CLIPImageProcessor`]):
Model that extracts features from generated images to be used as inputs for the `safety_checker`.
Model that extracts features from generated images to be used as inputs for the `safety_checker`.
"""
"""
...
...
examples/community/instaflow_one_step.py
View file @
1b456bd5
...
@@ -86,7 +86,7 @@ class InstaFlowPipeline(
...
@@ -86,7 +86,7 @@ class InstaFlowPipeline(
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
safety_checker ([`StableDiffusionSafetyChecker`]):
safety_checker ([`StableDiffusionSafetyChecker`]):
Classification module that estimates whether generated images could be considered offensive or harmful.
Classification module that estimates whether generated images could be considered offensive or harmful.
Please refer to the [model card](https://huggingface.co/
runwayml
/stable-diffusion-v1-5) for more details
Please refer to the [model card](https://huggingface.co/
stable-diffusion-v1-5
/stable-diffusion-v1-5) for more details
about a model's potential harms.
about a model's potential harms.
feature_extractor ([`~transformers.CLIPImageProcessor`]):
feature_extractor ([`~transformers.CLIPImageProcessor`]):
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
...
@@ -165,8 +165,8 @@ class InstaFlowPipeline(
...
@@ -165,8 +165,8 @@ class InstaFlowPipeline(
"The configuration file of the unet has set the default `sample_size` to smaller than"
"The configuration file of the unet has set the default `sample_size` to smaller than"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
runwayml
/stable-diffusion-v1-5"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
stable-diffusion-v1-5
/stable-diffusion-v1-5"
"
\n
-
runwayml
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
"
\n
-
stable-diffusion-v1-5
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
...
...
examples/community/ip_adapter_face_id.py
View file @
1b456bd5
...
@@ -166,7 +166,7 @@ class IPAdapterFaceIDStableDiffusionPipeline(
...
@@ -166,7 +166,7 @@ class IPAdapterFaceIDStableDiffusionPipeline(
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
safety_checker ([`StableDiffusionSafetyChecker`]):
safety_checker ([`StableDiffusionSafetyChecker`]):
Classification module that estimates whether generated images could be considered offensive or harmful.
Classification module that estimates whether generated images could be considered offensive or harmful.
Please refer to the [model card](https://huggingface.co/
runwayml
/stable-diffusion-v1-5) for more details
Please refer to the [model card](https://huggingface.co/
stable-diffusion-v1-5
/stable-diffusion-v1-5) for more details
about a model's potential harms.
about a model's potential harms.
feature_extractor ([`~transformers.CLIPImageProcessor`]):
feature_extractor ([`~transformers.CLIPImageProcessor`]):
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
...
@@ -247,8 +247,8 @@ class IPAdapterFaceIDStableDiffusionPipeline(
...
@@ -247,8 +247,8 @@ class IPAdapterFaceIDStableDiffusionPipeline(
"The configuration file of the unet has set the default `sample_size` to smaller than"
"The configuration file of the unet has set the default `sample_size` to smaller than"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
runwayml
/stable-diffusion-v1-5"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
stable-diffusion-v1-5
/stable-diffusion-v1-5"
"
\n
-
runwayml
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
"
\n
-
stable-diffusion-v1-5
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
...
...
examples/community/kohya_hires_fix.py
View file @
1b456bd5
...
@@ -414,7 +414,7 @@ class StableDiffusionHighResFixPipeline(StableDiffusionPipeline):
...
@@ -414,7 +414,7 @@ class StableDiffusionHighResFixPipeline(StableDiffusionPipeline):
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
safety_checker ([`StableDiffusionSafetyChecker`]):
safety_checker ([`StableDiffusionSafetyChecker`]):
Classification module that estimates whether generated images could be considered offensive or harmful.
Classification module that estimates whether generated images could be considered offensive or harmful.
Please refer to the [model card](https://huggingface.co/
runwayml
/stable-diffusion-v1-5) for more details
Please refer to the [model card](https://huggingface.co/
stable-diffusion-v1-5
/stable-diffusion-v1-5) for more details
about a model's potential harms.
about a model's potential harms.
feature_extractor ([`~transformers.CLIPImageProcessor`]):
feature_extractor ([`~transformers.CLIPImageProcessor`]):
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
...
...
examples/community/latent_consistency_interpolate.py
View file @
1b456bd5
...
@@ -222,7 +222,7 @@ class LatentConsistencyModelWalkPipeline(
...
@@ -222,7 +222,7 @@ class LatentConsistencyModelWalkPipeline(
supports [`LCMScheduler`].
supports [`LCMScheduler`].
safety_checker ([`StableDiffusionSafetyChecker`]):
safety_checker ([`StableDiffusionSafetyChecker`]):
Classification module that estimates whether generated images could be considered offensive or harmful.
Classification module that estimates whether generated images could be considered offensive or harmful.
Please refer to the [model card](https://huggingface.co/
runwayml
/stable-diffusion-v1-5) for more details
Please refer to the [model card](https://huggingface.co/
stable-diffusion-v1-5
/stable-diffusion-v1-5) for more details
about a model's potential harms.
about a model's potential harms.
feature_extractor ([`~transformers.CLIPImageProcessor`]):
feature_extractor ([`~transformers.CLIPImageProcessor`]):
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
...
...
examples/community/llm_grounded_diffusion.py
View file @
1b456bd5
...
@@ -302,7 +302,7 @@ class LLMGroundedDiffusionPipeline(
...
@@ -302,7 +302,7 @@ class LLMGroundedDiffusionPipeline(
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
safety_checker ([`StableDiffusionSafetyChecker`]):
safety_checker ([`StableDiffusionSafetyChecker`]):
Classification module that estimates whether generated images could be considered offensive or harmful.
Classification module that estimates whether generated images could be considered offensive or harmful.
Please refer to the [model card](https://huggingface.co/
runwayml
/stable-diffusion-v1-5) for more details
Please refer to the [model card](https://huggingface.co/
stable-diffusion-v1-5
/stable-diffusion-v1-5) for more details
about a model's potential harms.
about a model's potential harms.
feature_extractor ([`~transformers.CLIPImageProcessor`]):
feature_extractor ([`~transformers.CLIPImageProcessor`]):
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
...
@@ -392,8 +392,8 @@ class LLMGroundedDiffusionPipeline(
...
@@ -392,8 +392,8 @@ class LLMGroundedDiffusionPipeline(
"The configuration file of the unet has set the default `sample_size` to smaller than"
"The configuration file of the unet has set the default `sample_size` to smaller than"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
runwayml
/stable-diffusion-v1-5"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
stable-diffusion-v1-5
/stable-diffusion-v1-5"
"
\n
-
runwayml
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
"
\n
-
stable-diffusion-v1-5
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
...
...
examples/community/lpw_stable_diffusion.py
View file @
1b456bd5
...
@@ -552,8 +552,8 @@ class StableDiffusionLongPromptWeightingPipeline(
...
@@ -552,8 +552,8 @@ class StableDiffusionLongPromptWeightingPipeline(
"The configuration file of the unet has set the default `sample_size` to smaller than"
"The configuration file of the unet has set the default `sample_size` to smaller than"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
runwayml
/stable-diffusion-v1-5"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
stable-diffusion-v1-5
/stable-diffusion-v1-5"
"
\n
-
runwayml
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
"
\n
-
stable-diffusion-v1-5
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
...
...
examples/community/lpw_stable_diffusion_xl.py
View file @
1b456bd5
...
@@ -1765,7 +1765,7 @@ class SDXLLongPromptWeightingPipeline(
...
@@ -1765,7 +1765,7 @@ class SDXLLongPromptWeightingPipeline(
# Check that sizes of mask, masked image and latents match
# Check that sizes of mask, masked image and latents match
if
num_channels_unet
==
9
:
if
num_channels_unet
==
9
:
# default case for
runwayml
/stable-diffusion-inpainting
# default case for
stable-diffusion-v1-5
/stable-diffusion-inpainting
num_channels_mask
=
mask
.
shape
[
1
]
num_channels_mask
=
mask
.
shape
[
1
]
num_channels_masked_image
=
masked_image_latents
.
shape
[
1
]
num_channels_masked_image
=
masked_image_latents
.
shape
[
1
]
if
num_channels_latents
+
num_channels_mask
+
num_channels_masked_image
!=
num_channels_unet
:
if
num_channels_latents
+
num_channels_mask
+
num_channels_masked_image
!=
num_channels_unet
:
...
...
examples/community/matryoshka.py
View file @
1b456bd5
...
@@ -3729,8 +3729,8 @@ class MatryoshkaPipeline(
...
@@ -3729,8 +3729,8 @@ class MatryoshkaPipeline(
"The configuration file of the unet has set the default `sample_size` to smaller than"
"The configuration file of the unet has set the default `sample_size` to smaller than"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
runwayml
/stable-diffusion-v1-5"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
stable-diffusion-v1-5
/stable-diffusion-v1-5"
"
\n
-
runwayml
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
"
\n
-
stable-diffusion-v1-5
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
...
...
examples/community/multilingual_stable_diffusion.py
View file @
1b456bd5
...
@@ -78,7 +78,7 @@ class MultilingualStableDiffusion(DiffusionPipeline, StableDiffusionMixin):
...
@@ -78,7 +78,7 @@ class MultilingualStableDiffusion(DiffusionPipeline, StableDiffusionMixin):
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
safety_checker ([`StableDiffusionSafetyChecker`]):
safety_checker ([`StableDiffusionSafetyChecker`]):
Classification module that estimates whether generated images could be considered offensive or harmful.
Classification module that estimates whether generated images could be considered offensive or harmful.
Please, refer to the [model card](https://huggingface.co/
runwayml
/stable-diffusion-v1-5) for details.
Please, refer to the [model card](https://huggingface.co/
stable-diffusion-v1-5
/stable-diffusion-v1-5) for details.
feature_extractor ([`CLIPImageProcessor`]):
feature_extractor ([`CLIPImageProcessor`]):
Model that extracts features from generated images to be used as inputs for the `safety_checker`.
Model that extracts features from generated images to be used as inputs for the `safety_checker`.
"""
"""
...
...
examples/community/pipeline_controlnet_xl_kolors_inpaint.py
View file @
1b456bd5
...
@@ -1607,7 +1607,7 @@ class KolorsControlNetInpaintPipeline(
...
@@ -1607,7 +1607,7 @@ class KolorsControlNetInpaintPipeline(
# 9. Check that sizes of mask, masked image and latents match
# 9. Check that sizes of mask, masked image and latents match
if
num_channels_unet
==
9
:
if
num_channels_unet
==
9
:
# default case for
runwayml
/stable-diffusion-inpainting
# default case for
stable-diffusion-v1-5
/stable-diffusion-inpainting
num_channels_mask
=
mask
.
shape
[
1
]
num_channels_mask
=
mask
.
shape
[
1
]
num_channels_masked_image
=
masked_image_latents
.
shape
[
1
]
num_channels_masked_image
=
masked_image_latents
.
shape
[
1
]
if
num_channels_latents
+
num_channels_mask
+
num_channels_masked_image
!=
self
.
unet
.
config
.
in_channels
:
if
num_channels_latents
+
num_channels_mask
+
num_channels_masked_image
!=
self
.
unet
.
config
.
in_channels
:
...
...
examples/community/pipeline_fabric.py
View file @
1b456bd5
...
@@ -135,7 +135,7 @@ class FabricPipeline(DiffusionPipeline):
...
@@ -135,7 +135,7 @@ class FabricPipeline(DiffusionPipeline):
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
safety_checker ([`StableDiffusionSafetyChecker`]):
safety_checker ([`StableDiffusionSafetyChecker`]):
Classification module that estimates whether generated images could be considered offensive or harmful.
Classification module that estimates whether generated images could be considered offensive or harmful.
Please refer to the [model card](https://huggingface.co/
runwayml
/stable-diffusion-v1-5) for more details
Please refer to the [model card](https://huggingface.co/
stable-diffusion-v1-5
/stable-diffusion-v1-5) for more details
about a model's potential harms.
about a model's potential harms.
"""
"""
...
@@ -163,8 +163,8 @@ class FabricPipeline(DiffusionPipeline):
...
@@ -163,8 +163,8 @@ class FabricPipeline(DiffusionPipeline):
"The configuration file of the unet has set the default `sample_size` to smaller than"
"The configuration file of the unet has set the default `sample_size` to smaller than"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
runwayml
/stable-diffusion-v1-5"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
stable-diffusion-v1-5
/stable-diffusion-v1-5"
"
\n
-
runwayml
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
"
\n
-
stable-diffusion-v1-5
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
...
...
examples/community/pipeline_kolors_inpainting.py
View file @
1b456bd5
...
@@ -1487,7 +1487,7 @@ class KolorsInpaintPipeline(
...
@@ -1487,7 +1487,7 @@ class KolorsInpaintPipeline(
# 8. Check that sizes of mask, masked image and latents match
# 8. Check that sizes of mask, masked image and latents match
if
num_channels_unet
==
9
:
if
num_channels_unet
==
9
:
# default case for
runwayml
/stable-diffusion-inpainting
# default case for
stable-diffusion-v1-5
/stable-diffusion-inpainting
num_channels_mask
=
mask
.
shape
[
1
]
num_channels_mask
=
mask
.
shape
[
1
]
num_channels_masked_image
=
masked_image_latents
.
shape
[
1
]
num_channels_masked_image
=
masked_image_latents
.
shape
[
1
]
if
num_channels_latents
+
num_channels_mask
+
num_channels_masked_image
!=
self
.
unet
.
config
.
in_channels
:
if
num_channels_latents
+
num_channels_mask
+
num_channels_masked_image
!=
self
.
unet
.
config
.
in_channels
:
...
...
examples/community/pipeline_prompt2prompt.py
View file @
1b456bd5
...
@@ -106,7 +106,7 @@ class Prompt2PromptPipeline(
...
@@ -106,7 +106,7 @@ class Prompt2PromptPipeline(
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
safety_checker ([`StableDiffusionSafetyChecker`]):
safety_checker ([`StableDiffusionSafetyChecker`]):
Classification module that estimates whether generated images could be considered offensive or harmful.
Classification module that estimates whether generated images could be considered offensive or harmful.
Please refer to the [model card](https://huggingface.co/
runwayml
/stable-diffusion-v1-5) for more details
Please refer to the [model card](https://huggingface.co/
stable-diffusion-v1-5
/stable-diffusion-v1-5) for more details
about a model's potential harms.
about a model's potential harms.
feature_extractor ([`~transformers.CLIPImageProcessor`]):
feature_extractor ([`~transformers.CLIPImageProcessor`]):
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
...
@@ -187,8 +187,8 @@ class Prompt2PromptPipeline(
...
@@ -187,8 +187,8 @@ class Prompt2PromptPipeline(
"The configuration file of the unet has set the default `sample_size` to smaller than"
"The configuration file of the unet has set the default `sample_size` to smaller than"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
runwayml
/stable-diffusion-v1-5"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
stable-diffusion-v1-5
/stable-diffusion-v1-5"
"
\n
-
runwayml
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
"
\n
-
stable-diffusion-v1-5
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
...
...
examples/community/pipeline_sdxl_style_aligned.py
View file @
1b456bd5
...
@@ -1730,7 +1730,7 @@ class StyleAlignedSDXLPipeline(
...
@@ -1730,7 +1730,7 @@ class StyleAlignedSDXLPipeline(
# Check that sizes of mask, masked image and latents match
# Check that sizes of mask, masked image and latents match
if
num_channels_unet
==
9
:
if
num_channels_unet
==
9
:
# default case for
runwayml
/stable-diffusion-inpainting
# default case for
stable-diffusion-v1-5
/stable-diffusion-inpainting
num_channels_mask
=
mask
.
shape
[
1
]
num_channels_mask
=
mask
.
shape
[
1
]
num_channels_masked_image
=
masked_image_latents
.
shape
[
1
]
num_channels_masked_image
=
masked_image_latents
.
shape
[
1
]
if
num_channels_latents
+
num_channels_mask
+
num_channels_masked_image
!=
num_channels_unet
:
if
num_channels_latents
+
num_channels_mask
+
num_channels_masked_image
!=
num_channels_unet
:
...
...
examples/community/pipeline_stable_diffusion_boxdiff.py
View file @
1b456bd5
...
@@ -59,7 +59,7 @@ EXAMPLE_DOC_STRING = """
...
@@ -59,7 +59,7 @@ EXAMPLE_DOC_STRING = """
>>> import torch
>>> import torch
>>> from diffusers import StableDiffusionPipeline
>>> from diffusers import StableDiffusionPipeline
>>> pipe = StableDiffusionPipeline.from_pretrained("
runwayml
/stable-diffusion-v1-5", torch_dtype=torch.float16)
>>> pipe = StableDiffusionPipeline.from_pretrained("
stable-diffusion-v1-5
/stable-diffusion-v1-5", torch_dtype=torch.float16)
>>> pipe = pipe.to("cuda")
>>> pipe = pipe.to("cuda")
>>> prompt = "a photo of an astronaut riding a horse on mars"
>>> prompt = "a photo of an astronaut riding a horse on mars"
...
@@ -392,7 +392,7 @@ class StableDiffusionBoxDiffPipeline(
...
@@ -392,7 +392,7 @@ class StableDiffusionBoxDiffPipeline(
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
safety_checker ([`StableDiffusionSafetyChecker`]):
safety_checker ([`StableDiffusionSafetyChecker`]):
Classification module that estimates whether generated images could be considered offensive or harmful.
Classification module that estimates whether generated images could be considered offensive or harmful.
Please refer to the [model card](https://huggingface.co/
runwayml
/stable-diffusion-v1-5) for more details
Please refer to the [model card](https://huggingface.co/
stable-diffusion-v1-5
/stable-diffusion-v1-5) for more details
about a model's potential harms.
about a model's potential harms.
feature_extractor ([`~transformers.CLIPImageProcessor`]):
feature_extractor ([`~transformers.CLIPImageProcessor`]):
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
...
@@ -473,8 +473,8 @@ class StableDiffusionBoxDiffPipeline(
...
@@ -473,8 +473,8 @@ class StableDiffusionBoxDiffPipeline(
"The configuration file of the unet has set the default `sample_size` to smaller than"
"The configuration file of the unet has set the default `sample_size` to smaller than"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
runwayml
/stable-diffusion-v1-5"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
stable-diffusion-v1-5
/stable-diffusion-v1-5"
"
\n
-
runwayml
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
"
\n
-
stable-diffusion-v1-5
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
...
...
examples/community/pipeline_stable_diffusion_pag.py
View file @
1b456bd5
...
@@ -42,7 +42,7 @@ EXAMPLE_DOC_STRING = """
...
@@ -42,7 +42,7 @@ EXAMPLE_DOC_STRING = """
```py
```py
>>> import torch
>>> import torch
>>> from diffusers import StableDiffusionPipeline
>>> from diffusers import StableDiffusionPipeline
>>> pipe = StableDiffusionPipeline.from_pretrained("
runwayml
/stable-diffusion-v1-5", torch_dtype=torch.float16)
>>> pipe = StableDiffusionPipeline.from_pretrained("
stable-diffusion-v1-5
/stable-diffusion-v1-5", torch_dtype=torch.float16)
>>> pipe = pipe.to("cuda")
>>> pipe = pipe.to("cuda")
>>> prompt = "a photo of an astronaut riding a horse on mars"
>>> prompt = "a photo of an astronaut riding a horse on mars"
>>> image = pipe(prompt).images[0]
>>> image = pipe(prompt).images[0]
...
@@ -359,7 +359,7 @@ class StableDiffusionPAGPipeline(
...
@@ -359,7 +359,7 @@ class StableDiffusionPAGPipeline(
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
safety_checker ([`StableDiffusionSafetyChecker`]):
safety_checker ([`StableDiffusionSafetyChecker`]):
Classification module that estimates whether generated images could be considered offensive or harmful.
Classification module that estimates whether generated images could be considered offensive or harmful.
Please refer to the [model card](https://huggingface.co/
runwayml
/stable-diffusion-v1-5) for more details
Please refer to the [model card](https://huggingface.co/
stable-diffusion-v1-5
/stable-diffusion-v1-5) for more details
about a model's potential harms.
about a model's potential harms.
feature_extractor ([`~transformers.CLIPImageProcessor`]):
feature_extractor ([`~transformers.CLIPImageProcessor`]):
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
...
@@ -440,8 +440,8 @@ class StableDiffusionPAGPipeline(
...
@@ -440,8 +440,8 @@ class StableDiffusionPAGPipeline(
"The configuration file of the unet has set the default `sample_size` to smaller than"
"The configuration file of the unet has set the default `sample_size` to smaller than"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" 64 which seems highly unlikely. If your checkpoint is a fine-tuned version of any of the"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" following:
\n
- CompVis/stable-diffusion-v1-4
\n
- CompVis/stable-diffusion-v1-3
\n
-"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
runwayml
/stable-diffusion-v1-5"
" CompVis/stable-diffusion-v1-2
\n
- CompVis/stable-diffusion-v1-1
\n
-
stable-diffusion-v1-5
/stable-diffusion-v1-5"
"
\n
-
runwayml
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
"
\n
-
stable-diffusion-v1-5
/stable-diffusion-inpainting
\n
you should change 'sample_size' to 64 in the"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" configuration file. Please make sure to update the config accordingly as leaving `sample_size=32`"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" in the config might lead to incorrect results in future versions. If you have downloaded this"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
" checkpoint from the Hugging Face Hub, it would be very nice if you could open a Pull request for"
...
...
examples/community/pipeline_stable_diffusion_upscale_ldm3d.py
View file @
1b456bd5
...
@@ -100,7 +100,7 @@ class StableDiffusionUpscaleLDM3DPipeline(
...
@@ -100,7 +100,7 @@ class StableDiffusionUpscaleLDM3DPipeline(
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
[`DDIMScheduler`], [`LMSDiscreteScheduler`], or [`PNDMScheduler`].
safety_checker ([`StableDiffusionSafetyChecker`]):
safety_checker ([`StableDiffusionSafetyChecker`]):
Classification module that estimates whether generated images could be considered offensive or harmful.
Classification module that estimates whether generated images could be considered offensive or harmful.
Please refer to the [model card](https://huggingface.co/
runwayml
/stable-diffusion-v1-5) for more details
Please refer to the [model card](https://huggingface.co/
stable-diffusion-v1-5
/stable-diffusion-v1-5) for more details
about a model's potential harms.
about a model's potential harms.
feature_extractor ([`~transformers.CLIPImageProcessor`]):
feature_extractor ([`~transformers.CLIPImageProcessor`]):
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
A `CLIPImageProcessor` to extract features from generated images; used as inputs to the `safety_checker`.
...
...
examples/community/pipeline_stable_diffusion_xl_attentive_eraser.py
View file @
1b456bd5
...
@@ -2042,7 +2042,7 @@ class StableDiffusionXL_AE_Pipeline(
...
@@ -2042,7 +2042,7 @@ class StableDiffusionXL_AE_Pipeline(
# 8. Check that sizes of mask, masked image and latents match
# 8. Check that sizes of mask, masked image and latents match
if
num_channels_unet
==
9
:
if
num_channels_unet
==
9
:
# default case for
runwayml
/stable-diffusion-inpainting
# default case for
stable-diffusion-v1-5
/stable-diffusion-inpainting
num_channels_mask
=
mask
.
shape
[
1
]
num_channels_mask
=
mask
.
shape
[
1
]
num_channels_masked_image
=
masked_image_latents
.
shape
[
1
]
num_channels_masked_image
=
masked_image_latents
.
shape
[
1
]
if
num_channels_latents
+
num_channels_mask
+
num_channels_masked_image
!=
self
.
unet
.
config
.
in_channels
:
if
num_channels_latents
+
num_channels_mask
+
num_channels_masked_image
!=
self
.
unet
.
config
.
in_channels
:
...
...
Prev
1
2
3
4
5
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