Create losses/__init__.py
Browse files
audiocraft/losses/__init__.py
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Copyright (c) Meta Platforms, Inc. and affiliates.
|
| 2 |
+
# All rights reserved.
|
| 3 |
+
#
|
| 4 |
+
# This source code is licensed under the license found in the
|
| 5 |
+
# LICENSE file in the root directory of this source tree.
|
| 6 |
+
"""Loss related classes and functions. In particular the loss balancer from
|
| 7 |
+
EnCodec, and the usual spectral losses."""
|
| 8 |
+
|
| 9 |
+
# flake8: noqa
|
| 10 |
+
from .balancer import Balancer
|
| 11 |
+
from .sisnr import SISNR
|
| 12 |
+
from .stftloss import (
|
| 13 |
+
LogSTFTMagnitudeLoss,
|
| 14 |
+
MRSTFTLoss,
|
| 15 |
+
SpectralConvergenceLoss,
|
| 16 |
+
STFTLoss
|
| 17 |
+
)
|
| 18 |
+
from .specloss import (
|
| 19 |
+
MelSpectrogramL1Loss,
|
| 20 |
+
MultiScaleMelSpectrogramLoss,
|
| 21 |
+
)
|