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

Remove redundant lines (#7396)

Co-authored-by: Dhruv Nair <dhruv.nair@gmail.com>
Co-authored-by: YiYi Xu <yixu310@gmail.com>
This commit is contained in:
Phil Butler
2024-04-22 15:32:16 -04:00
committed by GitHub
parent 33b363edfa
commit 09129842e7

View File

@@ -90,7 +90,6 @@ class Encoder(nn.Module):
padding=1,
)
self.mid_block = None
self.down_blocks = nn.ModuleList([])
# down
@@ -228,7 +227,6 @@ class Decoder(nn.Module):
padding=1,
)
self.mid_block = None
self.up_blocks = nn.ModuleList([])
temb_channels = in_channels if norm_type == "spatial" else None
@@ -474,7 +472,6 @@ class MaskConditionDecoder(nn.Module):
padding=1,
)
self.mid_block = None
self.up_blocks = nn.ModuleList([])
temb_channels = in_channels if norm_type == "spatial" else None