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
7a91ea6c
Unverified
Commit
7a91ea6c
authored
Jul 10, 2023
by
Pedro Cuenca
Committed by
GitHub
Jul 10, 2023
Browse files
Remove remaining `not` in upscale pipeline (#4020)
Remove remaining `not` in upscale pipeline.
parent
e4559f48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py
...nes/stable_diffusion/pipeline_stable_diffusion_upscale.py
+1
-1
No files found.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion_upscale.py
View file @
7a91ea6c
...
...
@@ -760,7 +760,7 @@ class StableDiffusionUpscalePipeline(DiffusionPipeline, TextualInversionLoaderMi
# if xformers or torch_2_0 is used attention block does not need
# to be in float32 which can save lots of memory
if
not
use_torch_2_0_or_xformers
:
if
use_torch_2_0_or_xformers
:
self
.
vae
.
post_quant_conv
.
to
(
latents
.
dtype
)
self
.
vae
.
decoder
.
conv_in
.
to
(
latents
.
dtype
)
self
.
vae
.
decoder
.
mid_block
.
to
(
latents
.
dtype
)
...
...
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