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
OpenDAS
diffusers
Commits
02afa546
Commit
02afa546
authored
Aug 03, 2024
by
lijian6
Browse files
Disable fa for vae because 512 dim is not supported.
Signed-off-by:
lijian
<
lijian6@sugon.com
>
parent
36cdd148
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py
...s/pipelines/stable_diffusion/pipeline_stable_diffusion.py
+1
-0
No files found.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py
View file @
02afa546
...
@@ -1042,6 +1042,7 @@ class StableDiffusionPipeline(
...
@@ -1042,6 +1042,7 @@ class StableDiffusionPipeline(
step_idx
=
i
//
getattr
(
self
.
scheduler
,
"order"
,
1
)
step_idx
=
i
//
getattr
(
self
.
scheduler
,
"order"
,
1
)
callback
(
step_idx
,
t
,
latents
)
callback
(
step_idx
,
t
,
latents
)
self
.
disable_xformers_memory_efficient_attention
()
if
not
output_type
==
"latent"
:
if
not
output_type
==
"latent"
:
image
=
self
.
vae
.
decode
(
latents
/
self
.
vae
.
config
.
scaling_factor
,
return_dict
=
False
,
generator
=
generator
)[
image
=
self
.
vae
.
decode
(
latents
/
self
.
vae
.
config
.
scaling_factor
,
return_dict
=
False
,
generator
=
generator
)[
0
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