Skip to content

Commit 2023f67

Browse files
sarhakorfracape
authored andcommitted
[Update] Update MAC calculation code due to removal of temporal resampling
1 parent 24f0bfd commit 2023f67

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

compressai_vision/pipelines/split_inference/video_split_inference.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -351,12 +351,7 @@ def __call__(
351351

352352
# Calculate mac considering number of coded feature frames
353353
if self.is_mac_calculation:
354-
frames = (
355-
len(dataloader) // 2 + 1
356-
if codec.enc_tools["feature_reduction"]["temporal_resampling_enabled"]
357-
is True
358-
else len(dataloader)
359-
)
354+
frames = len(dataloader)
360355
self.calc_kmac_per_pixels_video_task(frames, len(dataloader))
361356

362357
# performance evaluation on end-task

0 commit comments

Comments
 (0)