Skip to content

Commit 5ee5d54

Browse files
jianwensongfracape
authored andcommitted
[fix] argument in evaluator
1 parent 3208fdd commit 5ee5d54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compressai_vision/evaluators/evaluators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1453,7 +1453,7 @@ def write_results(self, path: str = None):
14531453
with open(f"{path}/{self.output_file_name}.json", "w", encoding="utf-8") as f:
14541454
json.dump(self._evaluations, f, ensure_ascii=False, indent=4)
14551455

1456-
def digest(self, gt, pred):
1456+
def digest(self, gt, pred, mse_results=None):
14571457
ref = gt[0]["image"].unsqueeze(0).cpu()
14581458
tst = pred.unsqueeze(0).cpu()
14591459

0 commit comments

Comments
 (0)