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
8ff777d3
"vscode:/vscode.git/clone" did not exist on "b30f3cdba32b9e4b577e66536dad111d6020a3fa"
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
Hide 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):
...
@@ -87,8 +87,8 @@ class StableDiffusionPipeline(DiffusionPipeline):
Disable sliced attention computation. If `enable_attention_slicing` was previously invoked, this method will go
Disable sliced attention computation. If `enable_attention_slicing` was previously invoked, this method will go
back to computing attention in one step.
back to computing attention in one step.
"""
"""
# set slice_size = `None` to disable `
set_
attention
_
slic
e
`
# set slice_size = `None` to disable `attention
slic
ing
`
self
.
enable_attention_slic
e
(
None
)
self
.
enable_attention_slic
ing
(
None
)
@
torch
.
no_grad
()
@
torch
.
no_grad
()
def
__call__
(
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