diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 70f7c0c0..4f21e4ec 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,17 +3,17 @@ ci: repos: - repo: https://github.com/pycqa/isort - rev: 5.12.0 + rev: 7.0.0 hooks: - id: isort - - repo: https://github.com/psf/black - rev: 23.10.1 + - repo: https://github.com/psf/black-pre-commit-mirror + rev: 25.12.0 hooks: - id: black - repo: https://github.com/codespell-project/codespell - rev: v2.2.6 + rev: v2.4.1 hooks: - id: codespell files: ^.*\.(py|md|rst|yml)$ diff --git a/configs/_base_/archs/diff_svc_v2.py b/configs/_base_/archs/diff_svc_v2.py index 3805b714..b4241635 100644 --- a/configs/_base_/archs/diff_svc_v2.py +++ b/configs/_base_/archs/diff_svc_v2.py @@ -1,7 +1,7 @@ """ DiffSVC architecture with WaveNet denoiser and NSF-HiFiGAN vocoder. -Comparing to v1, this version +Comparing to v1, this version - Doesn't need spec stats anymore. - Added dilation cycle to WaveNet denoiser. - Used the log10 mel spectrogram. diff --git a/tools/diffusion/gradio_ui.py b/tools/diffusion/gradio_ui.py index 283383a4..895f74c6 100644 --- a/tools/diffusion/gradio_ui.py +++ b/tools/diffusion/gradio_ui.py @@ -55,9 +55,11 @@ def launch_gradio( speaker = gr.Dropdown( label="Speaker Name (Used for Multi-Speaker Models)", choices=list(speaker_mapping.keys()), - value=speaker - if speaker in speaker_mapping - else list(speaker_mapping.keys())[0], + value=( + speaker + if speaker in speaker_mapping + else list(speaker_mapping.keys())[0] + ), ) else: speaker = gr.Number( diff --git a/tools/mfa/postprocess_mfa.py b/tools/mfa/postprocess_mfa.py index 2973b81b..87a7c8bc 100644 --- a/tools/mfa/postprocess_mfa.py +++ b/tools/mfa/postprocess_mfa.py @@ -4,7 +4,6 @@ It aims to reduce errors for long utterances and detcect aspiration which is not detected by MFA. """ - import librosa import numpy as np import parselmouth as pm