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
628f2c54
Unverified
Commit
628f2c54
authored
Jan 07, 2025
by
hlky
Committed by
GitHub
Jan 07, 2025
Browse files
Use Pipelines without scheduler (#10439)
Co-authored-by:
Sayak Paul
<
spsayakpaul@gmail.com
>
parent
811560b1
Changes
41
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
38 additions
and
38 deletions
+38
-38
examples/community/stable_diffusion_tensorrt_txt2img.py
examples/community/stable_diffusion_tensorrt_txt2img.py
+2
-2
examples/community/text_inpainting.py
examples/community/text_inpainting.py
+2
-2
examples/community/wildcard_stable_diffusion.py
examples/community/wildcard_stable_diffusion.py
+1
-1
src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py
...elines/deprecated/alt_diffusion/pipeline_alt_diffusion.py
+2
-2
src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py
...eprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py
+2
-2
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py
...ted/stable_diffusion_variants/pipeline_cycle_diffusion.py
+1
-1
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_onnx_stable_diffusion_inpaint_legacy.py
...variants/pipeline_onnx_stable_diffusion_inpaint_legacy.py
+2
-2
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py
...sion_variants/pipeline_stable_diffusion_inpaint_legacy.py
+2
-2
src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py
...pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py
+2
-2
src/diffusers/pipelines/pag/pipeline_pag_sd.py
src/diffusers/pipelines/pag/pipeline_pag_sd.py
+2
-2
src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py
src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py
+2
-2
src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py
src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py
+2
-2
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion.py
...elines/stable_diffusion/pipeline_onnx_stable_diffusion.py
+2
-2
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_img2img.py
...table_diffusion/pipeline_onnx_stable_diffusion_img2img.py
+2
-2
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_inpaint.py
...table_diffusion/pipeline_onnx_stable_diffusion_inpaint.py
+2
-2
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_upscale.py
...table_diffusion/pipeline_onnx_stable_diffusion_upscale.py
+2
-2
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py
...s/pipelines/stable_diffusion/pipeline_stable_diffusion.py
+2
-2
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py
...nes/stable_diffusion/pipeline_stable_diffusion_img2img.py
+2
-2
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py
...nes/stable_diffusion/pipeline_stable_diffusion_inpaint.py
+2
-2
src/diffusers/pipelines/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py
..._diffusion_diffedit/pipeline_stable_diffusion_diffedit.py
+2
-2
No files found.
examples/community/stable_diffusion_tensorrt_txt2img.py
View file @
628f2c54
...
@@ -626,7 +626,7 @@ class TensorRTStableDiffusionPipeline(DiffusionPipeline):
...
@@ -626,7 +626,7 @@ class TensorRTStableDiffusionPipeline(DiffusionPipeline):
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -640,7 +640,7 @@ class TensorRTStableDiffusionPipeline(DiffusionPipeline):
...
@@ -640,7 +640,7 @@ class TensorRTStableDiffusionPipeline(DiffusionPipeline):
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"clip_sample"
)
and
scheduler
.
config
.
clip_sample
is
True
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
clip_sample
"
,
False
)
is
True
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
...
...
examples/community/text_inpainting.py
View file @
628f2c54
...
@@ -71,7 +71,7 @@ class TextInpainting(DiffusionPipeline, StableDiffusionMixin):
...
@@ -71,7 +71,7 @@ class TextInpainting(DiffusionPipeline, StableDiffusionMixin):
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -85,7 +85,7 @@ class TextInpainting(DiffusionPipeline, StableDiffusionMixin):
...
@@ -85,7 +85,7 @@ class TextInpainting(DiffusionPipeline, StableDiffusionMixin):
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"skip_prk_steps"
)
and
scheduler
.
config
.
skip_prk_steps
is
False
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
skip_prk_steps
"
,
True
)
is
False
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration"
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration"
" `skip_prk_steps`. `skip_prk_steps` should be set to True in the configuration file. Please make"
" `skip_prk_steps`. `skip_prk_steps` should be set to True in the configuration file. Please make"
...
...
examples/community/wildcard_stable_diffusion.py
View file @
628f2c54
...
@@ -120,7 +120,7 @@ class WildcardStableDiffusionPipeline(DiffusionPipeline, StableDiffusionMixin):
...
@@ -120,7 +120,7 @@ class WildcardStableDiffusionPipeline(DiffusionPipeline, StableDiffusionMixin):
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
...
src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion.py
View file @
628f2c54
...
@@ -210,7 +210,7 @@ class AltDiffusionPipeline(
...
@@ -210,7 +210,7 @@ class AltDiffusionPipeline(
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -224,7 +224,7 @@ class AltDiffusionPipeline(
...
@@ -224,7 +224,7 @@ class AltDiffusionPipeline(
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"clip_sample"
)
and
scheduler
.
config
.
clip_sample
is
True
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
clip_sample
"
,
False
)
is
True
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
...
...
src/diffusers/pipelines/deprecated/alt_diffusion/pipeline_alt_diffusion_img2img.py
View file @
628f2c54
...
@@ -238,7 +238,7 @@ class AltDiffusionImg2ImgPipeline(
...
@@ -238,7 +238,7 @@ class AltDiffusionImg2ImgPipeline(
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -252,7 +252,7 @@ class AltDiffusionImg2ImgPipeline(
...
@@ -252,7 +252,7 @@ class AltDiffusionImg2ImgPipeline(
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"clip_sample"
)
and
scheduler
.
config
.
clip_sample
is
True
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
clip_sample
"
,
False
)
is
True
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
...
...
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_cycle_diffusion.py
View file @
628f2c54
...
@@ -184,7 +184,7 @@ class CycleDiffusionPipeline(DiffusionPipeline, TextualInversionLoaderMixin, Sta
...
@@ -184,7 +184,7 @@ class CycleDiffusionPipeline(DiffusionPipeline, TextualInversionLoaderMixin, Sta
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
...
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_onnx_stable_diffusion_inpaint_legacy.py
View file @
628f2c54
...
@@ -93,7 +93,7 @@ class OnnxStableDiffusionInpaintPipelineLegacy(DiffusionPipeline):
...
@@ -93,7 +93,7 @@ class OnnxStableDiffusionInpaintPipelineLegacy(DiffusionPipeline):
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -107,7 +107,7 @@ class OnnxStableDiffusionInpaintPipelineLegacy(DiffusionPipeline):
...
@@ -107,7 +107,7 @@ class OnnxStableDiffusionInpaintPipelineLegacy(DiffusionPipeline):
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"clip_sample"
)
and
scheduler
.
config
.
clip_sample
is
True
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
clip_sample
"
,
False
)
is
True
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
...
...
src/diffusers/pipelines/deprecated/stable_diffusion_variants/pipeline_stable_diffusion_inpaint_legacy.py
View file @
628f2c54
...
@@ -140,7 +140,7 @@ class StableDiffusionInpaintPipelineLegacy(
...
@@ -140,7 +140,7 @@ class StableDiffusionInpaintPipelineLegacy(
)
)
deprecate
(
"legacy is outdated"
,
"1.0.0"
,
deprecation_message
,
standard_warn
=
False
)
deprecate
(
"legacy is outdated"
,
"1.0.0"
,
deprecation_message
,
standard_warn
=
False
)
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -154,7 +154,7 @@ class StableDiffusionInpaintPipelineLegacy(
...
@@ -154,7 +154,7 @@ class StableDiffusionInpaintPipelineLegacy(
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"clip_sample"
)
and
scheduler
.
config
.
clip_sample
is
True
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
clip_sample
"
,
False
)
is
True
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
...
...
src/diffusers/pipelines/ledits_pp/pipeline_leditspp_stable_diffusion.py
View file @
628f2c54
...
@@ -316,7 +316,7 @@ class LEditsPPPipelineStableDiffusion(
...
@@ -316,7 +316,7 @@ class LEditsPPPipelineStableDiffusion(
"The scheduler has been changed to DPMSolverMultistepScheduler."
"The scheduler has been changed to DPMSolverMultistepScheduler."
)
)
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -330,7 +330,7 @@ class LEditsPPPipelineStableDiffusion(
...
@@ -330,7 +330,7 @@ class LEditsPPPipelineStableDiffusion(
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"clip_sample"
)
and
scheduler
.
config
.
clip_sample
is
True
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
clip_sample
"
,
False
)
is
True
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
...
...
src/diffusers/pipelines/pag/pipeline_pag_sd.py
View file @
628f2c54
...
@@ -207,7 +207,7 @@ class StableDiffusionPAGPipeline(
...
@@ -207,7 +207,7 @@ class StableDiffusionPAGPipeline(
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -221,7 +221,7 @@ class StableDiffusionPAGPipeline(
...
@@ -221,7 +221,7 @@ class StableDiffusionPAGPipeline(
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"clip_sample"
)
and
scheduler
.
config
.
clip_sample
is
True
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
clip_sample
"
,
False
)
is
True
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
...
...
src/diffusers/pipelines/pag/pipeline_pag_sd_img2img.py
View file @
628f2c54
...
@@ -202,7 +202,7 @@ class StableDiffusionPAGImg2ImgPipeline(
...
@@ -202,7 +202,7 @@ class StableDiffusionPAGImg2ImgPipeline(
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -216,7 +216,7 @@ class StableDiffusionPAGImg2ImgPipeline(
...
@@ -216,7 +216,7 @@ class StableDiffusionPAGImg2ImgPipeline(
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"clip_sample"
)
and
scheduler
.
config
.
clip_sample
is
True
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
clip_sample
"
,
False
)
is
True
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
...
...
src/diffusers/pipelines/pag/pipeline_pag_sd_inpaint.py
View file @
628f2c54
...
@@ -234,7 +234,7 @@ class StableDiffusionPAGInpaintPipeline(
...
@@ -234,7 +234,7 @@ class StableDiffusionPAGInpaintPipeline(
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -248,7 +248,7 @@ class StableDiffusionPAGInpaintPipeline(
...
@@ -248,7 +248,7 @@ class StableDiffusionPAGInpaintPipeline(
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"clip_sample"
)
and
scheduler
.
config
.
clip_sample
is
True
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
clip_sample
"
,
False
)
is
True
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion.py
View file @
628f2c54
...
@@ -57,7 +57,7 @@ class OnnxStableDiffusionPipeline(DiffusionPipeline):
...
@@ -57,7 +57,7 @@ class OnnxStableDiffusionPipeline(DiffusionPipeline):
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -71,7 +71,7 @@ class OnnxStableDiffusionPipeline(DiffusionPipeline):
...
@@ -71,7 +71,7 @@ class OnnxStableDiffusionPipeline(DiffusionPipeline):
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"clip_sample"
)
and
scheduler
.
config
.
clip_sample
is
True
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
clip_sample
"
,
False
)
is
True
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_img2img.py
View file @
628f2c54
...
@@ -110,7 +110,7 @@ class OnnxStableDiffusionImg2ImgPipeline(DiffusionPipeline):
...
@@ -110,7 +110,7 @@ class OnnxStableDiffusionImg2ImgPipeline(DiffusionPipeline):
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -124,7 +124,7 @@ class OnnxStableDiffusionImg2ImgPipeline(DiffusionPipeline):
...
@@ -124,7 +124,7 @@ class OnnxStableDiffusionImg2ImgPipeline(DiffusionPipeline):
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"clip_sample"
)
and
scheduler
.
config
.
clip_sample
is
True
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
clip_sample
"
,
False
)
is
True
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_inpaint.py
View file @
628f2c54
...
@@ -109,7 +109,7 @@ class OnnxStableDiffusionInpaintPipeline(DiffusionPipeline):
...
@@ -109,7 +109,7 @@ class OnnxStableDiffusionInpaintPipeline(DiffusionPipeline):
super
().
__init__
()
super
().
__init__
()
logger
.
info
(
"`OnnxStableDiffusionInpaintPipeline` is experimental and will very likely change in the future."
)
logger
.
info
(
"`OnnxStableDiffusionInpaintPipeline` is experimental and will very likely change in the future."
)
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -123,7 +123,7 @@ class OnnxStableDiffusionInpaintPipeline(DiffusionPipeline):
...
@@ -123,7 +123,7 @@ class OnnxStableDiffusionInpaintPipeline(DiffusionPipeline):
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"clip_sample"
)
and
scheduler
.
config
.
clip_sample
is
True
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
clip_sample
"
,
False
)
is
True
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_onnx_stable_diffusion_upscale.py
View file @
628f2c54
...
@@ -83,7 +83,7 @@ class OnnxStableDiffusionUpscalePipeline(DiffusionPipeline):
...
@@ -83,7 +83,7 @@ class OnnxStableDiffusionUpscalePipeline(DiffusionPipeline):
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -97,7 +97,7 @@ class OnnxStableDiffusionUpscalePipeline(DiffusionPipeline):
...
@@ -97,7 +97,7 @@ class OnnxStableDiffusionUpscalePipeline(DiffusionPipeline):
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"clip_sample"
)
and
scheduler
.
config
.
clip_sample
is
True
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
clip_sample
"
,
False
)
is
True
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py
View file @
628f2c54
...
@@ -211,7 +211,7 @@ class StableDiffusionPipeline(
...
@@ -211,7 +211,7 @@ class StableDiffusionPipeline(
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -225,7 +225,7 @@ class StableDiffusionPipeline(
...
@@ -225,7 +225,7 @@ class StableDiffusionPipeline(
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"clip_sample"
)
and
scheduler
.
config
.
clip_sample
is
True
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
clip_sample
"
,
False
)
is
True
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py
View file @
628f2c54
...
@@ -230,7 +230,7 @@ class StableDiffusionImg2ImgPipeline(
...
@@ -230,7 +230,7 @@ class StableDiffusionImg2ImgPipeline(
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -244,7 +244,7 @@ class StableDiffusionImg2ImgPipeline(
...
@@ -244,7 +244,7 @@ class StableDiffusionImg2ImgPipeline(
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"clip_sample"
)
and
scheduler
.
config
.
clip_sample
is
True
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
clip_sample
"
,
False
)
is
True
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration `clip_sample`."
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
" `clip_sample` should be set to False in the configuration file. Please make sure to update the"
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint.py
View file @
628f2c54
...
@@ -171,7 +171,7 @@ class StableDiffusionInpaintPipeline(
...
@@ -171,7 +171,7 @@ class StableDiffusionInpaintPipeline(
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -185,7 +185,7 @@ class StableDiffusionInpaintPipeline(
...
@@ -185,7 +185,7 @@ class StableDiffusionInpaintPipeline(
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"skip_prk_steps"
)
and
scheduler
.
config
.
skip_prk_steps
is
False
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
skip_prk_steps
"
,
True
)
is
False
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration"
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration"
" `skip_prk_steps`. `skip_prk_steps` should be set to True in the configuration file. Please make"
" `skip_prk_steps`. `skip_prk_steps` should be set to True in the configuration file. Please make"
...
...
src/diffusers/pipelines/stable_diffusion_diffedit/pipeline_stable_diffusion_diffedit.py
View file @
628f2c54
...
@@ -292,7 +292,7 @@ class StableDiffusionDiffEditPipeline(
...
@@ -292,7 +292,7 @@ class StableDiffusionDiffEditPipeline(
):
):
super
().
__init__
()
super
().
__init__
()
if
hasattr
(
scheduler
.
config
,
"steps_offset"
)
and
scheduler
.
config
.
steps_offset
!=
1
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
steps_offset
"
,
1
)
!=
1
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
"The configuration file of this scheduler:
{
scheduler
}
is outdated. `steps_offset`"
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
f
" should be set to 1 instead of
{
scheduler
.
config
.
steps_offset
}
. Please make sure "
...
@@ -306,7 +306,7 @@ class StableDiffusionDiffEditPipeline(
...
@@ -306,7 +306,7 @@ class StableDiffusionDiffEditPipeline(
new_config
[
"steps_offset"
]
=
1
new_config
[
"steps_offset"
]
=
1
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
scheduler
.
_internal_dict
=
FrozenDict
(
new_config
)
if
hasattr
(
scheduler
.
config
,
"skip_prk_steps"
)
and
scheduler
.
config
.
skip_prk_steps
is
False
:
if
scheduler
is
not
None
and
getattr
(
scheduler
.
config
,
"
skip_prk_steps
"
,
True
)
is
False
:
deprecation_message
=
(
deprecation_message
=
(
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration"
f
"The configuration file of this scheduler:
{
scheduler
}
has not set the configuration"
" `skip_prk_steps`. `skip_prk_steps` should be set to True in the configuration file. Please make"
" `skip_prk_steps`. `skip_prk_steps` should be set to True in the configuration file. Please make"
...
...
Prev
1
2
3
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