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
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/diffusers/pipelines/stable_diffusion_safe/pipeline_stable_diffusion_safe.py
...s/stable_diffusion_safe/pipeline_stable_diffusion_safe.py
+2
-2
No files found.
src/diffusers/pipelines/stable_diffusion_safe/pipeline_stable_diffusion_safe.py
View file @
628f2c54
...
...
@@ -74,7 +74,7 @@ class StableDiffusionPipelineSafe(DiffusionPipeline, StableDiffusionMixin, IPAda
" abuse, brutality, cruelty"
)
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
=
(
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 "
...
...
@@ -88,7 +88,7 @@ class StableDiffusionPipelineSafe(DiffusionPipeline, StableDiffusionMixin, IPAda
new_config
[
"steps_offset"
]
=
1
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
=
(
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"
...
...
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