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
3c07840b
Commit
3c07840b
authored
Jan 19, 2023
by
Patrick von Platen
Browse files
make style
parent
fcb2ec8c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py
...pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.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_inpaint_legacy.py
...ble_diffusion/pipeline_stable_diffusion_inpaint_legacy.py
+1
-1
No files found.
src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py
View file @
3c07840b
...
...
@@ -387,7 +387,7 @@ class AltDiffusionImg2ImgPipeline(DiffusionPipeline):
raise
ValueError
(
f
"`prompt` has to be of type `str` or `list` but is
{
type
(
prompt
)
}
"
)
if
strength
<
0
or
strength
>
1
:
raise
ValueError
(
f
"The value of strength should in [
1
.0, 1.0] but is
{
strength
}
"
)
raise
ValueError
(
f
"The value of strength should in [
0
.0, 1.0] but is
{
strength
}
"
)
if
(
callback_steps
is
None
)
or
(
callback_steps
is
not
None
and
(
not
isinstance
(
callback_steps
,
int
)
or
callback_steps
<=
0
)
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_cycle_diffusion.py
View file @
3c07840b
...
...
@@ -372,7 +372,7 @@ class CycleDiffusionPipeline(DiffusionPipeline):
raise
ValueError
(
f
"`prompt` has to be of type `str` or `list` but is
{
type
(
prompt
)
}
"
)
if
strength
<
0
or
strength
>
1
:
raise
ValueError
(
f
"The value of strength should in [
1
.0, 1.0] but is
{
strength
}
"
)
raise
ValueError
(
f
"The value of strength should in [
0
.0, 1.0] but is
{
strength
}
"
)
if
(
callback_steps
is
None
)
or
(
callback_steps
is
not
None
and
(
not
isinstance
(
callback_steps
,
int
)
or
callback_steps
<=
0
)
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_inpaint_legacy.py
View file @
3c07840b
...
...
@@ -365,7 +365,7 @@ class StableDiffusionInpaintPipelineLegacy(DiffusionPipeline):
raise
ValueError
(
f
"`prompt` has to be of type `str` or `list` but is
{
type
(
prompt
)
}
"
)
if
strength
<
0
or
strength
>
1
:
raise
ValueError
(
f
"The value of strength should in [
1
.0, 1.0] but is
{
strength
}
"
)
raise
ValueError
(
f
"The value of strength should in [
0
.0, 1.0] but is
{
strength
}
"
)
if
(
callback_steps
is
None
)
or
(
callback_steps
is
not
None
and
(
not
isinstance
(
callback_steps
,
int
)
or
callback_steps
<=
0
)
...
...
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