Revert "Format code (#1154)" (#1156)

This reverts commit eefb7dbe1d.
This commit is contained in:
源文雨
2023-09-01 15:17:51 +08:00
committed by GitHub
parent eefb7dbe1d
commit 8d5a77dbe9
3 changed files with 4 additions and 12 deletions

View File

@@ -264,7 +264,9 @@ class Pipeline(object):
with torch.no_grad():
hasp = pitch is not None and pitchf is not None
arg = (feats, p_len, pitch, pitchf, sid) if hasp else (feats, p_len, sid)
audio1 = (net_g.infer(*arg)[0][0, 0]).data.cpu().float().numpy()
audio1 = (
(net_g.infer(*arg)[0][0, 0]).data.cpu().float().numpy()
)
del hasp, arg
del feats, p_len, padding_mask
if torch.cuda.is_available():

View File

@@ -2,7 +2,6 @@ import os
from fairseq import checkpoint_utils
def get_index_path_from_model(sid):
return next(
(