From 0db831910a17abebb5adccf41766c3187afd510e Mon Sep 17 00:00:00 2001 From: Fangjun Kuang Date: Tue, 29 Oct 2024 10:41:09 +0800 Subject: [PATCH] fix isort --- egs/ljspeech/TTS/local/validate_manifest.py | 2 +- egs/ljspeech/TTS/matcha/monotonic_align/__init__.py | 1 - egs/ljspeech/TTS/matcha/monotonic_align/setup.py | 3 ++- egs/ljspeech/TTS/matcha/tts_datamodule.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/egs/ljspeech/TTS/local/validate_manifest.py b/egs/ljspeech/TTS/local/validate_manifest.py index bbd1bfe9d..9535ba9f4 100755 --- a/egs/ljspeech/TTS/local/validate_manifest.py +++ b/egs/ljspeech/TTS/local/validate_manifest.py @@ -33,9 +33,9 @@ import argparse import logging from pathlib import Path +from compute_fbank_ljspeech import MyFbank from lhotse import CutSet, load_manifest_lazy from lhotse.dataset.speech_synthesis import validate_for_tts -from compute_fbank_ljspeech import MyFbank def get_args(): diff --git a/egs/ljspeech/TTS/matcha/monotonic_align/__init__.py b/egs/ljspeech/TTS/matcha/monotonic_align/__init__.py index 85e275fd0..5b26fe474 100644 --- a/egs/ljspeech/TTS/matcha/monotonic_align/__init__.py +++ b/egs/ljspeech/TTS/matcha/monotonic_align/__init__.py @@ -2,7 +2,6 @@ # https://github.com/shivammehta25/Matcha-TTS/blob/main/matcha/utils/monotonic_align/__init__.py import numpy as np import torch - from matcha.monotonic_align.core import maximum_path_c diff --git a/egs/ljspeech/TTS/matcha/monotonic_align/setup.py b/egs/ljspeech/TTS/matcha/monotonic_align/setup.py index e406d6786..df26c633e 100644 --- a/egs/ljspeech/TTS/matcha/monotonic_align/setup.py +++ b/egs/ljspeech/TTS/matcha/monotonic_align/setup.py @@ -1,8 +1,9 @@ # Copied from # https://github.com/shivammehta25/Matcha-TTS/blob/main/matcha/utils/monotonic_align/setup.py from distutils.core import setup -from Cython.Build import cythonize + import numpy +from Cython.Build import cythonize setup( name="monotonic_align", diff --git a/egs/ljspeech/TTS/matcha/tts_datamodule.py b/egs/ljspeech/TTS/matcha/tts_datamodule.py index 0227d9fdb..8e37fc030 100644 --- a/egs/ljspeech/TTS/matcha/tts_datamodule.py +++ b/egs/ljspeech/TTS/matcha/tts_datamodule.py @@ -24,8 +24,8 @@ from pathlib import Path from typing import Any, Dict, Optional import torch -from lhotse import CutSet, load_manifest_lazy from compute_fbank_ljspeech import MyFbank, MyFbankConfig +from lhotse import CutSet, load_manifest_lazy from lhotse.dataset import ( # noqa F401 for PrecomputedFeatures CutConcatenate, CutMix,