Spaces:
Runtime error
Runtime error
minor
Browse files
peak_signal_to_noise_ratio.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
"""
|
2 |
|
3 |
import datasets
|
4 |
import numpy as np
|
@@ -21,7 +21,7 @@ Args:
|
|
21 |
references (`list` of `np.array`): Ground truth labels.
|
22 |
sample_weight (`list` of `float`): Sample weights Defaults to None.
|
23 |
Returns:
|
24 |
-
psnr (`float`):Peak Signal-to-Noise Ratio. The SSIM values are positive. Typical
|
25 |
values for the PSNR in lossy image and video compression are between 30 and 50 dB,
|
26 |
provided the bit depth is 8 bits, where higher is better.
|
27 |
Examples:
|
|
|
1 |
+
"""Peak Signal-to-Noise Ratio metric."""
|
2 |
|
3 |
import datasets
|
4 |
import numpy as np
|
|
|
21 |
references (`list` of `np.array`): Ground truth labels.
|
22 |
sample_weight (`list` of `float`): Sample weights Defaults to None.
|
23 |
Returns:
|
24 |
+
psnr (`float`): Peak Signal-to-Noise Ratio. The SSIM values are positive. Typical
|
25 |
values for the PSNR in lossy image and video compression are between 30 and 50 dB,
|
26 |
provided the bit depth is 8 bits, where higher is better.
|
27 |
Examples:
|