Skip to content

Commit 8314486

Browse files
chore(format): run black on dev (#46)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 8ac5597 commit 8314486

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

rvc/f0/rmvpe.py

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ def __init__(
2121
device: str,
2222
use_jit=False,
2323
):
24-
hop_length=160
25-
f0_min=30
26-
f0_max=8000
27-
sampling_rate=16000
24+
hop_length = 160
25+
f0_min = 30
26+
f0_max = 8000
27+
sampling_rate = 16000
2828

2929
super().__init__(hop_length, f0_min, f0_max, sampling_rate)
3030

@@ -55,6 +55,7 @@ def __init__(
5555
providers=["DmlExecutionProvider"],
5656
)
5757
else:
58+
5859
def get_jit_model():
5960
jit_model_path = model_path.rstrip(".pth")
6061
jit_model_path += ".half.jit" if is_half else ".jit"
@@ -110,9 +111,7 @@ def compute_f0(
110111
p_len = wav.shape[0] // self.hop_length
111112
if not torch.is_tensor(wav):
112113
wav = torch.from_numpy(wav)
113-
mel = self.mel_extractor(
114-
wav.float().to(self.device).unsqueeze(0), center=True
115-
)
114+
mel = self.mel_extractor(wav.float().to(self.device).unsqueeze(0), center=True)
116115
hidden = self._mel2hidden(mel)
117116
if "privateuseone" not in str(self.device):
118117
hidden = hidden.squeeze(0).cpu().numpy()

0 commit comments

Comments
 (0)