[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
a9e5a80654
commit
dd792c6312
6 changed files with 16 additions and 5 deletions
|
|
@ -296,7 +296,9 @@ def _compare(
|
|||
if all(x == math.inf for x in xs):
|
||||
return math.inf
|
||||
vals = [
|
||||
_PERFECT_MATCH_PSNR if x == math.inf else x for x in xs if math.isfinite(x) or x == math.inf
|
||||
_PERFECT_MATCH_PSNR if x == math.inf else x
|
||||
for x in xs
|
||||
if math.isfinite(x) or x == math.inf
|
||||
]
|
||||
return round(sum(vals) / len(vals), 4) if vals else None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue