Skip to content

Commit 93f75d1

Browse files
CaedenPHcclauss
andauthored
Update compression/peak_signal_to_noise_ratio.py
Co-authored-by: Christian Clauss <[email protected]>
1 parent d8d712d commit 93f75d1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

compression/peak_signal_to_noise_ratio.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,7 @@ def psnr(original: float, contrast: float) -> float:
1919
if mse == 0:
2020
return 100
2121

22-
psnr = 20 * math.log10(PIXEL_MAX / math.sqrt(mse))
23-
return psnr
22+
return 20 * math.log10(PIXEL_MAX / math.sqrt(mse))
2423

2524

2625
def main() -> None:

0 commit comments

Comments
 (0)