Format code (#1162)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2023-09-02 11:50:52 +08:00
committed by GitHub
parent a86806b01a
commit dace5a6f99
18 changed files with 53 additions and 12 deletions

View File

@@ -2,6 +2,7 @@
# Fill in the path of the model to be queried and the root directory of the reference models, and this script will return the similarity between the model to be queried and all reference models.
import os
import logging
logger = logging.getLogger(__name__)
import torch

View File

@@ -4,6 +4,7 @@
"""
import os
import logging
logger = logging.getLogger(__name__)
import parselmouth

View File

@@ -4,6 +4,7 @@
import os
import traceback
import logging
logger = logging.getLogger(__name__)
from multiprocessing import cpu_count

View File

@@ -3,6 +3,7 @@
"""
import os
import logging
logger = logging.getLogger(__name__)
import faiss

View File

@@ -2,6 +2,7 @@ import os
import sys
import traceback
import logging
logger = logging.getLogger(__name__)
from time import time as ttime
@@ -341,5 +342,11 @@ class RVC:
.float()
)
t5 = ttime()
logger.info("Spent time: fea = %s, index = %s, f0 = %s, model = %s", t2 - t1, t3 - t2, t4 - t3, t5 - t4)
logger.info(
"Spent time: fea = %s, index = %s, f0 = %s, model = %s",
t2 - t1,
t3 - t2,
t4 - t3,
t5 - t4,
)
return infered_audio