Skip to content

Commit 4669752

Browse files
committed
Fix black failed.
1 parent 2917005 commit 4669752

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tensorflow_tts/bin/preprocess.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def parse_and_config():
4444
parser = argparse.ArgumentParser(
4545
description="Preprocess audio and text features "
4646
"(See detail in tensorflow_tts/bin/preprocess_dataset.py)."
47+
)
4748
parser.add_argument(
4849
"--rootdir",
4950
default=None,
@@ -254,10 +255,7 @@ def preprocess():
254255
"""Run preprocessing process and compute statistics for normalizing."""
255256
config = parse_and_config()
256257

257-
dataset_processor = {
258-
"ljspeech": LJSpeechProcessor,
259-
"baker": BakerProcessor
260-
}
258+
dataset_processor = {"ljspeech": LJSpeechProcessor, "baker": BakerProcessor}
261259

262260
logging.info(f"Selected '{config['dataset']}' processor.")
263261
processor = dataset_processor[config["dataset"]](
@@ -416,4 +414,3 @@ def compute_statistics():
416414
logging.info("Saving computed statistics.")
417415
scaler_list = [(scaler_mel, ""), (scaler_energy, "_energy"), (scaler_f0, "_f0")]
418416
save_statistics_to_file(scaler_list, config)
419-

0 commit comments

Comments
 (0)