This commit is contained in:
Hu Ye
2025-05-12 19:32:36 +02:00
committed by GitHub

View File

@@ -506,7 +506,7 @@ class DownBlock2D(nn.Module):
self.resnets = nn.ModuleList(resnets)
if add_downsample:
self.downsamplers = [Downsample2D(out_channels, out_channels=out_channels)]
self.downsamplers = nn.ModuleList([Downsample2D(out_channels, out_channels=out_channels)])
else:
self.downsamplers = None