Skip to content

Commit

Permalink
Introduce numpy and torch transforms (#1705)
Browse files Browse the repository at this point in the history
* Refactor audio processing functions

* Add tests for numpy transforms

* Fix imports

* Fix imports2
  • Loading branch information
erogol authored Aug 8, 2022
1 parent 7fd9b89 commit d46fbc2
Show file tree
Hide file tree
Showing 10 changed files with 701 additions and 172 deletions.
2 changes: 1 addition & 1 deletion TTS/encoder/models/resnet.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import torch
from torch import nn

# from TTS.utils.audio import TorchSTFT
# from TTS.utils.audio.torch_transforms import TorchSTFT
from TTS.encoder.models.base_encoder import BaseEncoder


Expand Down
2 changes: 1 addition & 1 deletion TTS/tts/layers/losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from TTS.tts.utils.helpers import sequence_mask
from TTS.tts.utils.ssim import SSIMLoss as _SSIMLoss
from TTS.utils.audio import TorchSTFT
from TTS.utils.audio.torch_transforms import TorchSTFT


# pylint: disable=abstract-method
Expand Down
1 change: 1 addition & 0 deletions TTS/utils/audio/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from TTS.utils.audio.processor import AudioProcessor
Loading

0 comments on commit d46fbc2

Please sign in to comment.