mirror of
https://github.com/THUDM/CogVideo.git
synced 2025-04-06 03:57:56 +08:00
use original up.upsample
This commit is contained in:
parent
4a3035d64e
commit
0ae12e3ea3
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user