From 62d3a2e8ff67f21cbda31842b51241a9d0045d1c Mon Sep 17 00:00:00 2001 From: Ikko Eltociear Ashimine Date: Thu, 4 Jan 2024 22:35:10 +0900 Subject: [PATCH] Update modules.py (#256) * Update modules.py Dialted -> Dilated * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- hiyoriUI.py | 6 +++--- modules.py | 2 +- train_ms.py | 1 - 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/hiyoriUI.py b/hiyoriUI.py index 18dd3119b..de378c065 100644 --- a/hiyoriUI.py +++ b/hiyoriUI.py @@ -268,7 +268,7 @@ async def _voice( if len(speaker_piece2) != 2: return { "status": 21, - "detail": f"MIX语法错误", + "detail": "MIX语法错误", } speaker = speaker_piece2[0].strip() lang_pieces = speaker_piece2[1].split("<") @@ -279,13 +279,13 @@ async def _voice( if len(lang_piece2) != 2: return { "status": 21, - "detail": f"MIX语法错误", + "detail": "MIX语法错误", } lang = lang_piece2[0].strip() if lang.upper() not in ["ZH", "EN", "JP"]: return { "status": 21, - "detail": f"MIX语法错误", + "detail": "MIX语法错误", } t = lang_piece2[1] text_language_speakers.append((t, lang.upper(), speaker)) diff --git a/modules.py b/modules.py index b1f89a2f8..dcd6ff7c8 100644 --- a/modules.py +++ b/modules.py @@ -83,7 +83,7 @@ def forward(self, x, x_mask): class DDSConv(nn.Module): """ - Dialted and Depth-Separable Convolution + Dilated and Depth-Separable Convolution """ def __init__(self, channels, kernel_size, n_layers, p_dropout=0.0): diff --git a/train_ms.py b/train_ms.py index 3e827162d..156a548d5 100644 --- a/train_ms.py +++ b/train_ms.py @@ -13,7 +13,6 @@ from config import config import argparse import datetime -import gc logging.getLogger("numba").setLevel(logging.WARNING) import commons