1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-05 09:10:25 +08:00

chore(format): run black on dev (#23)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
github-actions[bot]
2024-06-10 21:38:19 +09:00
committed by GitHub
parent e33ef19200
commit fe7a2bf41a
3 changed files with 27 additions and 18 deletions

View File

@@ -291,14 +291,19 @@ class Pipeline(object):
p_len = torch.tensor([p_len], device=self.device).long()
with torch.no_grad():
audio1 = (
net_g.infer(
feats,
p_len,
sid,
pitch=pitch,
pitchf=pitchf,
)[0, 0]
).data.cpu().float().numpy()
(
net_g.infer(
feats,
p_len,
sid,
pitch=pitch,
pitchf=pitchf,
)[0, 0]
)
.data.cpu()
.float()
.numpy()
)
del feats, p_len, padding_mask
if torch.cuda.is_available():
torch.cuda.empty_cache()