Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.10
rev: v0.14.14
hooks:
- id: ruff
args: [ --fix ]

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 25.12.0
rev: 26.1.0
hooks:
- id: black

Expand Down
1 change: 0 additions & 1 deletion for_deploy/webui.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import librosa
from infer_utils import BertFeature, ClapFeature


net_g = None

device = config.webui_config.device
Expand Down
1 change: 0 additions & 1 deletion oldVersion/V101/text/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from .symbols import *


_symbol_to_id = {s: i for i, s in enumerate(symbols)}


Expand Down
1 change: 0 additions & 1 deletion oldVersion/V101/text/chinese.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@

import jieba.posseg as psg


rep_map = {
":": ",",
";": ",",
Expand Down
1 change: 0 additions & 1 deletion oldVersion/V101/text/cleaner.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from . import chinese, cleaned_text_to_sequence


language_module_map = {"ZH": chinese}


Expand Down
1 change: 0 additions & 1 deletion oldVersion/V110/text/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from .symbols import *


_symbol_to_id = {s: i for i, s in enumerate(symbols)}


Expand Down
1 change: 0 additions & 1 deletion oldVersion/V110/text/chinese.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import jieba.posseg as psg


rep_map = {
":": ",",
";": ",",
Expand Down
1 change: 0 additions & 1 deletion oldVersion/V110/text/cleaner.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from . import chinese, japanese, cleaned_text_to_sequence


language_module_map = {"ZH": chinese, "JP": japanese}


Expand Down
1 change: 0 additions & 1 deletion oldVersion/V111/text/chinese.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import jieba.posseg as psg


rep_map = {
":": ",",
";": ",",
Expand Down
1 change: 0 additions & 1 deletion oldVersion/V111/text/cleaner.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
from . import chinese, japanese, cleaned_text_to_sequence
from .fix import japanese as japanese_fix


language_module_map = {"ZH": chinese, "JP": japanese}
language_module_map_fix = {"ZH": chinese, "JP": japanese_fix}

Expand Down
1 change: 0 additions & 1 deletion oldVersion/V200/text/bert_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from config import config


MIRROR: str = config.mirror


Expand Down
1 change: 0 additions & 1 deletion oldVersion/V200/text/chinese.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import jieba.posseg as psg


rep_map = {
":": ",",
";": ",",
Expand Down
1 change: 0 additions & 1 deletion oldVersion/V200/text/cleaner.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from . import chinese, japanese, english, cleaned_text_to_sequence


language_module_map = {"ZH": chinese, "JP": japanese, "EN": english}


Expand Down
1 change: 0 additions & 1 deletion oldVersion/V200/text/english_bert_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from config import config


LOCAL_PATH = "./bert/deberta-v3-large"

tokenizer = DebertaV2Tokenizer.from_pretrained(LOCAL_PATH)
Expand Down
1 change: 0 additions & 1 deletion oldVersion/V210/text/bert_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from config import config


MIRROR: str = config.mirror


Expand Down
1 change: 0 additions & 1 deletion oldVersion/V210/text/chinese.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import jieba.posseg as psg


rep_map = {
":": ",",
";": ",",
Expand Down
1 change: 0 additions & 1 deletion oldVersion/V210/text/cleaner.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from . import chinese, japanese, english, cleaned_text_to_sequence


language_module_map = {"ZH": chinese, "JP": japanese, "EN": english}


Expand Down
1 change: 0 additions & 1 deletion oldVersion/V210/text/english_bert_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from config import config


LOCAL_PATH = "./bert/deberta-v3-large"

tokenizer = DebertaV2Tokenizer.from_pretrained(LOCAL_PATH)
Expand Down
1 change: 0 additions & 1 deletion oldVersion/V220/text/bert_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from config import config


MIRROR: str = config.mirror


Expand Down
1 change: 0 additions & 1 deletion oldVersion/V220/text/chinese.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import jieba.posseg as psg


rep_map = {
":": ",",
";": ",",
Expand Down
1 change: 0 additions & 1 deletion oldVersion/V220/text/cleaner.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from . import chinese, japanese, english, cleaned_text_to_sequence


language_module_map = {"ZH": chinese, "JP": japanese, "EN": english}


Expand Down
1 change: 0 additions & 1 deletion oldVersion/V220/text/english_bert_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from config import config


LOCAL_PATH = "./bert/deberta-v3-large"

tokenizer = DebertaV2Tokenizer.from_pretrained(LOCAL_PATH)
Expand Down
1 change: 0 additions & 1 deletion onnx_modules/V200/text/bert_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from config import config


MIRROR: str = config.mirror


Expand Down
1 change: 0 additions & 1 deletion onnx_modules/V200/text/chinese.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

import jieba.posseg as psg


rep_map = {
":": ",",
";": ",",
Expand Down
1 change: 0 additions & 1 deletion onnx_modules/V200/text/cleaner.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from . import chinese, japanese, english, cleaned_text_to_sequence


language_module_map = {"ZH": chinese, "JP": japanese, "EN": english}


Expand Down
1 change: 0 additions & 1 deletion onnx_modules/V200/text/english_bert_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from config import config


LOCAL_PATH = "./bert/deberta-v3-large"

tokenizer = DebertaV2Tokenizer.from_pretrained(LOCAL_PATH)
Expand Down
1 change: 0 additions & 1 deletion text/bert_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from config import config


MIRROR: str = config.mirror


Expand Down
1 change: 0 additions & 1 deletion text/chinese.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@

import jieba.posseg as psg


rep_map = {
":": ",",
";": ",",
Expand Down
1 change: 0 additions & 1 deletion text/cleaner.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from text import chinese, japanese, english, cleaned_text_to_sequence


language_module_map = {"ZH": chinese, "JP": japanese, "EN": english}


Expand Down
1 change: 0 additions & 1 deletion text/english_bert_mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

from config import config


LOCAL_PATH = "./bert/deberta-v3-large"

tokenizer = DebertaV2Tokenizer.from_pretrained(LOCAL_PATH)
Expand Down
1 change: 0 additions & 1 deletion text/japanese.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
import pyopenjtalk
import jaconv


# Mapping of hiragana to phonetic representation
hiragana_map = {
"う゛ぁ": " v a",
Expand Down
1 change: 0 additions & 1 deletion tools/log.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from loguru import logger
import sys


# 移除所有默认的处理器
logger.remove()

Expand Down
1 change: 0 additions & 1 deletion transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import numpy as np


DEFAULT_MIN_BIN_WIDTH = 1e-3
DEFAULT_MIN_BIN_HEIGHT = 1e-3
DEFAULT_MIN_DERIVATIVE = 1e-3
Expand Down