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
8ff777d3
Unverified
Commit
8ff777d3
authored
Sep 07, 2022
by
Patrick von Platen
Committed by
GitHub
Sep 07, 2022
Browse files
Attention slicing (#407)
uup
parent
1a431ae8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py
...s/pipelines/stable_diffusion/pipeline_stable_diffusion.py
+2
-2
No files found.
src/diffusers/pipelines/stable_diffusion/pipeline_stable_diffusion.py
View file @
8ff777d3
...
...
@@ -87,8 +87,8 @@ class StableDiffusionPipeline(DiffusionPipeline):
Disable sliced attention computation. If `enable_attention_slicing` was previously invoked, this method will go
back to computing attention in one step.
"""
# set slice_size = `None` to disable `
set_
attention
_
slic
e
`
self
.
enable_attention_slic
e
(
None
)
# set slice_size = `None` to disable `attention
slic
ing
`
self
.
enable_attention_slic
ing
(
None
)
@
torch
.
no_grad
()
def
__call__
(
...
...
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