add type declarations

This commit is contained in:
Ftps
2023-11-19 04:13:34 +09:00
parent 7f551b6787
commit 902654a1eb
2 changed files with 44 additions and 56 deletions

View File

@@ -18,8 +18,7 @@ import torch.nn.functional as F
import torchcrepe
from scipy import signal
now_dir = os.getcwd()
sys.path.append(now_dir)
logger: logging.Logger = logging.getLogger(__name__)
bh, ah = signal.butter(N=5, Wn=48, btype="high", fs=16000)
@@ -300,7 +299,8 @@ class Pipeline(object):
f0_file=None,
):
if (
file_index != ""
file_index
and file_index != ""
# and file_big_npy != ""
# and os.path.exists(file_big_npy) == True
and os.path.exists(file_index)