Skip to content

Commit

Permalink
Update modules.py (#256)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
eltociear and pre-commit-ci[bot] authored Jan 4, 2024
1 parent e6ceea6 commit 62d3a2e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions hiyoriUI.py
Original file line number Diff line number Diff line change
Expand Up @@ -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("<")
Expand All @@ -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))
Expand Down
2 changes: 1 addition & 1 deletion modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
1 change: 0 additions & 1 deletion train_ms.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from config import config
import argparse
import datetime
import gc

logging.getLogger("numba").setLevel(logging.WARNING)
import commons
Expand Down

0 comments on commit 62d3a2e

Please sign in to comment.