Skip to content

Commit

Permalink
Merge branch 'master' into feature/image_tensor_state
Browse files Browse the repository at this point in the history
  • Loading branch information
SkafteNicki authored Sep 28, 2023
2 parents ab46ba6 + e55fd0c commit 8dc3e07
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions docs/source/governance.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Core Maintainers
- Daniel Stancl (`stancld <https://github.com/stancld>`_)
- Luca Di Liello (`lucadiliello <https://github.com/lucadiliello>`_)
- Changsheng Quan (`quancs <https://github.com/quancs>`_)
- Shion Matsumoto (`matsumotosan <https://github.com/matsumotosan>`_)


Alumni
Expand Down
6 changes: 5 additions & 1 deletion src/torchmetrics/audio/pesq.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,17 @@ class PerceptualEvaluationSpeechQuality(Metric):
As output of `forward` and `compute` the metric returns the following output
- ``pesq`` (:class:`~torch.Tensor`): float tensor with shape ``(...,)`` of PESQ value per sample
- ``pesq`` (:class:`~torch.Tensor`): float tensor of PESQ value reduced across the batch
.. note:: using this metrics requires you to have ``pesq`` install. Either install as ``pip install
torchmetrics[audio]`` or ``pip install pesq``. ``pesq`` will compile with your currently
installed version of numpy, meaning that if you upgrade numpy at some point in the future you will
most likely have to reinstall ``pesq``.
.. note:: the ``forward`` and ``compute`` methods in this class return a single (reduced) PESQ value
for a batch. To obtain a PESQ value for each sample, you may use the functional counterpart in
:func:`~torchmetrics.functional.audio.pesq.perceptual_evaluation_speech_quality`.
Args:
fs: sampling frequency, should be 16000 or 8000 (Hz)
mode: ``'wb'`` (wide-band) or ``'nb'`` (narrow-band)
Expand Down

0 comments on commit 8dc3e07

Please sign in to comment.