Skip to content

Commit

Permalink
Updated README to reflect bypass_filter update.
Browse files Browse the repository at this point in the history
  • Loading branch information
crlandsc committed Jul 31, 2024
1 parent 0fbde7f commit e395348
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,9 @@ added alias file so imports can either be `torch_log_wmse` or `torch_log_wmse_au
#### Added ability to bypass frequency weightning + bug fixes
Added `bypass_filter` argument that will bypass frequency weighting if `True`.

Fixed bug that returns NaN when one of the entries in the batch is a digital silence triplet - Thanks to Iver Jordal for the [issue](https://github.com/crlandsc/torch-log-wmse/issues/2) & [PR](https://github.com/crlandsc/torch-log-wmse/pull/3)!
Fixed bug that returns NaN when one of the entries in the batch is a digital silence triplet - Thanks to Iver Jordal for the [issue](https://github.com/crlandsc/torch-log-wmse/issues/2) & [PR](https://github.com/crlandsc/torch-log-wmse/pull/3)!

## 0.2.9 (2024-07-31)

#### Updated README
Updated README to reflect 0.2.8 `bypass_filter` update.
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,14 @@ audio_channels = 2 # stereo
batch = 4 # batch size

# Instantiate logWMSE
# Set `return_as_loss=False` to resturn as a positive metric
log_wmse = LogWMSE(audio_length=audio_length, sample_rate=sample_rate, return_as_loss=True)
# Set `return_as_loss=False` to resturn as a positive metric (Default: True)
# Set `bypass_filter=True` to bypass frequency weighting (Default: False)
log_wmse = LogWMSE(
audio_length=audio_length,
sample_rate=sample_rate,
return_as_loss=True, # optional
bypass_filter=False, # optional
)

# Generate random inputs (scale between -1 and 1)
audio_lengths_samples = int(audio_length * sample_rate)
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = torch-log-wmse
version = 0.2.8
version = 0.2.9
author = Christopher Landschoot
author_email = crlandschoot@gmail.com
license = Apache License 2.0
Expand Down
2 changes: 1 addition & 1 deletion torch_log_wmse/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from .metric import LogWMSE

__version__ = "0.2.8"
__version__ = "0.2.9"

0 comments on commit e395348

Please sign in to comment.