use original up.upsample

This commit is contained in:
zR 2024-11-05 22:06:05 +08:00
parent 4a3035d64e
commit 0ae12e3ea3

View File

@ -960,10 +960,10 @@ class ContextParallelDecoder3D(nn.Module):
up.upsample = Upsample3D(block_in, with_conv=resamp_with_conv, compress_time=True)
else:
up.upsample = Upsample3D(block_in, with_conv=resamp_with_conv, compress_time=False)
# if i_level < self.num_resolutions - self.temporal_compress_level:
# up.upsample = Upsample3D(block_in, with_conv=resamp_with_conv, compress_time=False)
# else:
# up.upsample = Upsample3D(block_in, with_conv=resamp_with_conv, compress_time=True)
if i_level < self.num_resolutions - self.temporal_compress_level:
up.upsample = Upsample3D(block_in, with_conv=resamp_with_conv, compress_time=False)
else:
up.upsample = Upsample3D(block_in, with_conv=resamp_with_conv, compress_time=True)
self.up.insert(0, up)
self.norm_out = Normalize3D(block_in, zq_ch, add_conv=add_conv, gather=gather_norm)