1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

Fix redundant prev_output_channel assignment in UNet2DModel (#10945)

This commit is contained in:
Ahmed Belgacem
2025-03-03 22:43:15 +01:00
committed by GitHub
parent f92e599c70
commit 8f15be169f

View File

@@ -240,7 +240,6 @@ class UNet2DModel(ModelMixin, ConfigMixin):
dropout=dropout,
)
self.up_blocks.append(up_block)
prev_output_channel = output_channel
# out
num_groups_out = norm_num_groups if norm_num_groups is not None else min(block_out_channels[0] // 4, 32)