fix isort

This commit is contained in:
pkufool 2025-06-18 12:07:46 +08:00
parent 88c35c5e29
commit d23bacc23b
2 changed files with 5 additions and 7 deletions

View File

@ -19,11 +19,13 @@
import argparse
import logging
import os
from concurrent.futures import ProcessPoolExecutor as Pool
from pathlib import Path
from typing import Optional
from concurrent.futures import ProcessPoolExecutor as Pool
import lhotse
import torch
from feature import TorchAudioFbank, TorchAudioFbankConfig
from lhotse import (
CutSet,
LilcomChunkyWriter,
@ -31,9 +33,6 @@ from lhotse import (
set_audio_duration_mismatch_tolerance,
)
from feature import TorchAudioFbank, TorchAudioFbankConfig
import lhotse
# Torch's multithreaded behavior needs to be disabled or
# it wastes a lot of CPU and slow things down.
# Do this outside of main() in case it needs to take effect

View File

@ -24,15 +24,14 @@ This file reads the texts in given manifest and save the cleaned new cuts.
"""
import argparse
import logging
import glob
import logging
import os
from concurrent.futures import ProcessPoolExecutor as Pool
from pathlib import Path
from typing import List
from lhotse import CutSet, load_manifest_lazy
from concurrent.futures import ProcessPoolExecutor as Pool
from tokenizer import (
is_alphabet,
is_chinese,