mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-08 03:55:47 +08:00
chore(format): run black on dev (#2007)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
82bd4b1dd1
commit
da9a02049f
@@ -164,12 +164,17 @@ class Pipeline(object):
|
|||||||
|
|
||||||
logger.info("Loading fcpe model")
|
logger.info("Loading fcpe model")
|
||||||
self.model_fcpe = spawn_bundled_infer_model(self.device)
|
self.model_fcpe = spawn_bundled_infer_model(self.device)
|
||||||
f0 = self.model_fcpe.infer(
|
f0 = (
|
||||||
torch.from_numpy(x).to(self.device).unsqueeze(0).float(),
|
self.model_fcpe.infer(
|
||||||
sr=16000,
|
torch.from_numpy(x).to(self.device).unsqueeze(0).float(),
|
||||||
decoder_mode="local_argmax",
|
sr=16000,
|
||||||
threshold=0.006,
|
decoder_mode="local_argmax",
|
||||||
).squeeze().cpu().numpy()
|
threshold=0.006,
|
||||||
|
)
|
||||||
|
.squeeze()
|
||||||
|
.cpu()
|
||||||
|
.numpy()
|
||||||
|
)
|
||||||
|
|
||||||
f0 *= pow(2, f0_up_key / 12)
|
f0 *= pow(2, f0_up_key / 12)
|
||||||
# with open("test.txt","w")as f:f.write("\n".join([str(i)for i in f0.tolist()]))
|
# with open("test.txt","w")as f:f.write("\n".join([str(i)for i in f0.tolist()]))
|
||||||
|
|||||||
Reference in New Issue
Block a user