Skip to content

Commit 0ae12e3

Browse files
use original up.upsample
1 parent 4a3035d commit 0ae12e3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

sat/vae_modules/cp_enc_dec.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -960,10 +960,10 @@ def __init__(
960960
up.upsample = Upsample3D(block_in, with_conv=resamp_with_conv, compress_time=True)
961961
else:
962962
up.upsample = Upsample3D(block_in, with_conv=resamp_with_conv, compress_time=False)
963-
# if i_level < self.num_resolutions - self.temporal_compress_level:
964-
# up.upsample = Upsample3D(block_in, with_conv=resamp_with_conv, compress_time=False)
965-
# else:
966-
# up.upsample = Upsample3D(block_in, with_conv=resamp_with_conv, compress_time=True)
963+
if i_level < self.num_resolutions - self.temporal_compress_level:
964+
up.upsample = Upsample3D(block_in, with_conv=resamp_with_conv, compress_time=False)
965+
else:
966+
up.upsample = Upsample3D(block_in, with_conv=resamp_with_conv, compress_time=True)
967967
self.up.insert(0, up)
968968

969969
self.norm_out = Normalize3D(block_in, zq_ch, add_conv=add_conv, gather=gather_norm)

0 commit comments

Comments
 (0)