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
a934e5bc
"G" did not exist on "26ce60c46d128b820674e99c847304d1e424b661"
Unverified
Commit
a934e5bc
authored
Dec 08, 2022
by
Suraj Patil
Committed by
GitHub
Dec 08, 2022
Browse files
[Versatile Diffusion] add upcast_attention (#1605)
add upcast_attention arg
parent
a643c630
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py
...users/pipelines/versatile_diffusion/modeling_text_unet.py
+2
-0
No files found.
src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py
View file @
a934e5bc
...
...
@@ -31,6 +31,7 @@ def get_down_block(
dual_cross_attention
=
False
,
use_linear_projection
=
False
,
only_cross_attention
=
False
,
upcast_attention
=
False
,
):
down_block_type
=
down_block_type
[
7
:]
if
down_block_type
.
startswith
(
"UNetRes"
)
else
down_block_type
if
down_block_type
==
"DownBlockFlat"
:
...
...
@@ -83,6 +84,7 @@ def get_up_block(
dual_cross_attention
=
False
,
use_linear_projection
=
False
,
only_cross_attention
=
False
,
upcast_attention
=
False
,
):
up_block_type
=
up_block_type
[
7
:]
if
up_block_type
.
startswith
(
"UNetRes"
)
else
up_block_type
if
up_block_type
==
"UpBlockFlat"
:
...
...
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