Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Jan 4, 2023
1 parent f85d3c8 commit e65bd1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/source/links.rst
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,4 @@
.. _Signal-to-noise ratio: https://arxiv.org/abs/1811.02508
.. _Permutation invariant training: https://arxiv.org/abs/1607.00325
.. _Multilabel coverage error: https://link.springer.com/chapter/10.1007/978-0-387-09823-4_34
.. _Peak Signal to Noise Ratio With Blocked Effect: https://ieeexplore.ieee.org/abstract/document/5535179
.. _Peak Signal to Noise Ratio With Blocked Effect: https://ieeexplore.ieee.org/abstract/document/5535179
4 changes: 2 additions & 2 deletions src/torchmetrics/functional/image/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@
from torchmetrics.functional.image.d_lambda import spectral_distortion_index # noqa: F401
from torchmetrics.functional.image.ergas import error_relative_global_dimensionless_synthesis # noqa: F401
from torchmetrics.functional.image.gradients import image_gradients # noqa: F401
from torchmetrics.functional.image.psnr import peak_signal_noise_ratio # noqa: F401
from torchmetrics.functional.image.psnr import peak_signal_noise_ratio
from torchmetrics.functional.image.psnrb import peak_signal_noise_ratio # noqa: F401
from torchmetrics.functional.image.sam import spectral_angle_mapper # noqa: F401
from torchmetrics.functional.image.ssim import ( # noqa: F401
multiscale_structural_similarity_index_measure,
structural_similarity_index_measure,
)
from torchmetrics.functional.image.tv import total_variation # noqa: F401
from torchmetrics.functional.image.uqi import universal_image_quality_index # noqa: F401
from torchmetrics.functional.image.psnrb import peak_signal_noise_ratio # noqa: F401
1 change: 0 additions & 1 deletion src/torchmetrics/functional/image/psnrb.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ def _compute_bef(
diff = torch.gather(0, v_bc.unsqueeze(0)) - torch.gather(0, v_b.unsqueeze(0))
d_bc += torch.sum(torch.square(diff))


# N code
n_hb = height * (width / block_size) - 1
n_hbc = (height * (width - 1)) - n_hb
Expand Down

0 comments on commit e65bd1d

Please sign in to comment.