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
7ab7c121
Unverified
Commit
7ab7c121
authored
Jan 03, 2025
by
Junsong Chen
Committed by
GitHub
Jan 02, 2025
Browse files
[Sana] 1k PE bug fixed (#10431)
fix pe bug for Sana Co-authored-by:
YiYi Xu
<
yixu310@gmail.com
>
parent
44640c83
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/diffusers/models/transformers/sana_transformer.py
src/diffusers/models/transformers/sana_transformer.py
+1
-1
No files found.
src/diffusers/models/transformers/sana_transformer.py
View file @
7ab7c121
...
@@ -250,7 +250,6 @@ class SanaTransformer2DModel(ModelMixin, ConfigMixin, PeftAdapterMixin):
...
@@ -250,7 +250,6 @@ class SanaTransformer2DModel(ModelMixin, ConfigMixin, PeftAdapterMixin):
inner_dim
=
num_attention_heads
*
attention_head_dim
inner_dim
=
num_attention_heads
*
attention_head_dim
# 1. Patch Embedding
# 1. Patch Embedding
interpolation_scale
=
interpolation_scale
if
interpolation_scale
is
not
None
else
max
(
sample_size
//
64
,
1
)
self
.
patch_embed
=
PatchEmbed
(
self
.
patch_embed
=
PatchEmbed
(
height
=
sample_size
,
height
=
sample_size
,
width
=
sample_size
,
width
=
sample_size
,
...
@@ -258,6 +257,7 @@ class SanaTransformer2DModel(ModelMixin, ConfigMixin, PeftAdapterMixin):
...
@@ -258,6 +257,7 @@ class SanaTransformer2DModel(ModelMixin, ConfigMixin, PeftAdapterMixin):
in_channels
=
in_channels
,
in_channels
=
in_channels
,
embed_dim
=
inner_dim
,
embed_dim
=
inner_dim
,
interpolation_scale
=
interpolation_scale
,
interpolation_scale
=
interpolation_scale
,
pos_embed_type
=
"sincos"
if
interpolation_scale
is
not
None
else
None
,
)
)
# 2. Additional condition embeddings
# 2. Additional condition embeddings
...
...
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