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
1a6def3d
Unverified
Commit
1a6def3d
authored
Apr 04, 2023
by
YiYi Xu
Committed by
GitHub
Apr 04, 2023
Browse files
fix post-processing (#2968)
Co-authored-by:
yiyixuxu
<
yixu310@gmail,com
>
parent
0c63c383
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
12 deletions
+14
-12
src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py
...pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py
+7
-6
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py
...nes/stable_diffusion/pipeline_stable_diffusion_img2img.py
+7
-6
No files found.
src/diffusers/pipelines/alt_diffusion/pipeline_alt_diffusion_img2img.py
View file @
1a6def3d
...
@@ -734,6 +734,7 @@ class AltDiffusionImg2ImgPipeline(DiffusionPipeline, TextualInversionLoaderMixin
...
@@ -734,6 +734,7 @@ class AltDiffusionImg2ImgPipeline(DiffusionPipeline, TextualInversionLoaderMixin
image
=
latents
image
=
latents
has_nsfw_concept
=
None
has_nsfw_concept
=
None
else
:
image
=
self
.
decode_latents
(
latents
)
image
=
self
.
decode_latents
(
latents
)
if
self
.
safety_checker
is
not
None
:
if
self
.
safety_checker
is
not
None
:
...
...
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_img2img.py
View file @
1a6def3d
...
@@ -742,6 +742,7 @@ class StableDiffusionImg2ImgPipeline(DiffusionPipeline, TextualInversionLoaderMi
...
@@ -742,6 +742,7 @@ class StableDiffusionImg2ImgPipeline(DiffusionPipeline, TextualInversionLoaderMi
image
=
latents
image
=
latents
has_nsfw_concept
=
None
has_nsfw_concept
=
None
else
:
image
=
self
.
decode_latents
(
latents
)
image
=
self
.
decode_latents
(
latents
)
if
self
.
safety_checker
is
not
None
:
if
self
.
safety_checker
is
not
None
:
...
...
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