Skip to content

Commit 8f230e5

Browse files
authored
Update FcpePitchExtractor.py
1 parent 1cf9be5 commit 8f230e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/voice_changer/RVC/pitchExtractor/FcpePitchExtractor.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ def extract(self, audio, pitchf, f0_up_key, sr, window, silence_front=0):
2626
f0_mel_max = 1127 * np.log(1 + f0_max / 700)
2727

2828
f0 = self.fcpe.infer(
29-
audio.to(self.device_fcpe).unsqueeze(0).float(),
29+
audio.to(self.device).unsqueeze(0).float(),
3030
sr=16000,
3131
decoder_mode="local_argmax",
3232
threshold=0.006,

0 commit comments

Comments
 (0)