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
fe5911bf
Unverified
Commit
fe5911bf
authored
Jul 15, 2023
by
Patrick von Platen
Committed by
GitHub
Jul 15, 2023
Browse files
[Stable Diffusion Inpaint ]Fix dtype inpaint (#4113)
Fix dtype inpaint
parent
b024ebb9
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_xl/pipeline_stable_diffusion_xl_inpaint.py
...able_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py
+1
-1
No files found.
src/diffusers/pipelines/stable_diffusion_xl/pipeline_stable_diffusion_xl_inpaint.py
View file @
fe5911bf
...
@@ -684,8 +684,8 @@ class StableDiffusionXLInpaintPipeline(
...
@@ -684,8 +684,8 @@ class StableDiffusionXLInpaintPipeline(
return
outputs
return
outputs
def
_encode_vae_image
(
self
,
image
:
torch
.
Tensor
,
generator
:
torch
.
Generator
):
def
_encode_vae_image
(
self
,
image
:
torch
.
Tensor
,
generator
:
torch
.
Generator
):
dtype
=
image
.
dtype
if
self
.
vae
.
config
.
force_upcast
:
if
self
.
vae
.
config
.
force_upcast
:
dtype
=
image
.
dtype
image
=
image
.
float
()
image
=
image
.
float
()
self
.
vae
.
to
(
dtype
=
torch
.
float32
)
self
.
vae
.
to
(
dtype
=
torch
.
float32
)
...
...
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