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
8f15be16
Unverified
Commit
8f15be16
authored
Mar 03, 2025
by
Ahmed Belgacem
Committed by
GitHub
Mar 03, 2025
Browse files
Fix redundant prev_output_channel assignment in UNet2DModel (#10945)
parent
f92e599c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
src/diffusers/models/unets/unet_2d.py
src/diffusers/models/unets/unet_2d.py
+0
-1
No files found.
src/diffusers/models/unets/unet_2d.py
View file @
8f15be16
...
@@ -240,7 +240,6 @@ class UNet2DModel(ModelMixin, ConfigMixin):
...
@@ -240,7 +240,6 @@ class UNet2DModel(ModelMixin, ConfigMixin):
dropout
=
dropout
,
dropout
=
dropout
,
)
)
self
.
up_blocks
.
append
(
up_block
)
self
.
up_blocks
.
append
(
up_block
)
prev_output_channel
=
output_channel
# out
# out
num_groups_out
=
norm_num_groups
if
norm_num_groups
is
not
None
else
min
(
block_out_channels
[
0
]
//
4
,
32
)
num_groups_out
=
norm_num_groups
if
norm_num_groups
is
not
None
else
min
(
block_out_channels
[
0
]
//
4
,
32
)
...
...
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