mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-08 16:00:01 +08:00
fixed a small bug and delete the useless output
This commit is contained in:
parent
9f840832cb
commit
af637aab8b
5
api.py
5
api.py
@ -664,8 +664,6 @@ def run(ref:REF, text, text_lang):
|
|||||||
logger.info("run")
|
logger.info("run")
|
||||||
|
|
||||||
########## variables initialization ###########
|
########## variables initialization ###########
|
||||||
if not is_fast_inference:
|
|
||||||
batch_size = 1
|
|
||||||
top_k = 5
|
top_k = 5
|
||||||
top_p = 1
|
top_p = 1
|
||||||
temperature = 1
|
temperature = 1
|
||||||
@ -695,7 +693,6 @@ def run(ref:REF, text, text_lang):
|
|||||||
threshold=batch_threshold,
|
threshold=batch_threshold,
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
print(i18n("############ 切分文本 ############"))
|
|
||||||
texts = text.split("\n")
|
texts = text.split("\n")
|
||||||
data = []
|
data = []
|
||||||
for i in range(len(texts)):
|
for i in range(len(texts)):
|
||||||
@ -705,7 +702,6 @@ def run(ref:REF, text, text_lang):
|
|||||||
|
|
||||||
def make_batch(batch_texts):
|
def make_batch(batch_texts):
|
||||||
batch_data = []
|
batch_data = []
|
||||||
print(i18n("############ 提取文本Bert特征 ############"))
|
|
||||||
batch_data = preprocess(batch_texts, text_lang)
|
batch_data = preprocess(batch_texts, text_lang)
|
||||||
if len(batch_data) == 0:
|
if len(batch_data) == 0:
|
||||||
return None
|
return None
|
||||||
@ -716,7 +712,6 @@ def run(ref:REF, text, text_lang):
|
|||||||
|
|
||||||
t2 = ttime()
|
t2 = ttime()
|
||||||
try:
|
try:
|
||||||
print("############ 推理 ############")
|
|
||||||
###### inference ######
|
###### inference ######
|
||||||
t_34 = 0.0
|
t_34 = 0.0
|
||||||
t_45 = 0.0
|
t_45 = 0.0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user