Skip to content

Commit 1678410

Browse files
committed
[clarify] Rename 'vcm_eval_mode' flag to 'apply_pred_offset'
1 parent 1b9c0d0 commit 1678410

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

compressai_vision/evaluators/evaluators.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -565,13 +565,13 @@ def __init__(
565565
dataset,
566566
output_dir="./vision_output/",
567567
eval_criteria="MOTA",
568-
vcm_eval_mode=False,
568+
apply_pred_offset=False,
569569
**args,
570570
):
571571
super().__init__(
572572
datacatalog_name, dataset_name, dataset, output_dir, eval_criteria
573573
)
574-
self.vcm_eval_mode = vcm_eval_mode
574+
self.apply_pred_offset = apply_pred_offset
575575

576576
self.set_annotation_info(dataset)
577577

@@ -613,7 +613,7 @@ def digest(self, gt, pred):
613613
pred_list = []
614614
for tlwh, id in zip(pred["tlwhs"], pred["ids"]):
615615
x1, y1, w, h = tlwh
616-
if self.vcm_eval_mode: # Replicate offset applied in load_motchallenge() in motmetrics library, used in VCM eval framework to load predictions from disk
616+
if self.apply_pred_offset: # Replicate offset applied in load_motchallenge() in motmetrics library, used in VCM eval framework to load predictions from disk
617617
x1 -= 1
618618
y1 -= 1
619619
# x2, y2 = x1 + w, y1 + h

scripts/evaluation/tvd/eval_on_tvdvcm_vcmrs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ compressai-${PIPELINE}-inference --config-name=${CONF_NAME} \
9595
++dataset.config.annotation_file=gt/gt.txt \
9696
++dataset.config.dataset_name=mpeg-${SEQ} \
9797
++evaluator.type=MOT-TVD-EVAL \
98-
++evaluator.vcm_eval_mode=True \
98+
++evaluator.apply_pred_offset=True \
9999
++codec.experiment=${EXPERIMENT} \
100100
codec=vcmrs.yaml \
101101
++codec.encoder_config.intra_period=${INTRA_PERIOD} \

0 commit comments

Comments
 (0)