Skip to content

Commit 28468ce

Browse files
pseethpseeth
and
pseeth
authored
Adding decorators for training progress bars, etc. (#79)
* Adding decorators * Rewrote decorators. * Adding demo * Added test. * Added the decorators. * Added docstring * Bumping version. * Default step_fn * Explicitly set tracker step. * Moving step * Adding step to init * dict, not defaultdict when saving history * Moving lambda outside. * Changing torchmetrics. * making dummy * Device * return self * missing item * No more torchmetrics * Load step * Allow writer to be None * Moving write call * Moving ddp active to arguments of track. * Longer width * skip nans in taking mean. * Fixing mean. * Cleaning up decorators a bit. * Adding docstrings * Should update even if not dict, for pbars. * Fixing issue with dropping float/int. --------- Co-authored-by: pseeth <prem@descript.com>
1 parent f35914b commit 28468ce

File tree

6 files changed

+533
-3
lines changed

6 files changed

+533
-3
lines changed

audiotools/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
__version__ = "0.6.3"
1+
__version__ = "0.6.4"
22
from .core import AudioSignal
33
from .core import STFTParams
44
from .core import Meter

audiotools/core/ffmpeg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def load_from_file_with_ffmpeg(cls, audio_path: str, quiet: bool = True, **kwarg
178178
# offset in a video container.
179179
pad = ffprobe_offset(audio_path)
180180
# Don't pad files with discrepancies less than
181-
# 0.0.27s - it's likely due to codec latency.
181+
# 0.027s - it's likely due to codec latency.
182182
# The amount of latency introduced by mp3 is
183183
# 1152, which is 0.0261 44khz. So we
184184
# set the threshold here slightly above that.

audiotools/ml/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
from . import decorators
12
from . import layers
23
from . import tricks
34
from .accelerator import Accelerator

0 commit comments

Comments
 (0)