Skip to content

Commit cc11ad4

Browse files
chore(format): run black on dev (#54)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 3b7d7c6 commit cc11ad4

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

rvc/f0/fcpe.py

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,15 @@ def compute_f0(
3636
p_len = wav.shape[0] // self.hop_length
3737
if not torch.is_tensor(wav):
3838
wav = torch.from_numpy(wav)
39-
f0 = self.model.infer(
40-
wav.float().to(self.device).unsqueeze(0),
41-
sr=self.sampling_rate,
42-
decoder_mode="local_argmax",
43-
threshold=filter_radius,
44-
).squeeze().cpu().numpy()
39+
f0 = (
40+
self.model.infer(
41+
wav.float().to(self.device).unsqueeze(0),
42+
sr=self.sampling_rate,
43+
decoder_mode="local_argmax",
44+
threshold=filter_radius,
45+
)
46+
.squeeze()
47+
.cpu()
48+
.numpy()
49+
)
4550
return self._interpolate_f0(self._resize_f0(f0, p_len))[0]

0 commit comments

Comments
 (0)