mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-02-03 00:33:57 +03:00
Update FcpePitchExtractor.py
This commit is contained in:
parent
1cf9be54c7
commit
8f230e5c45
@ -26,7 +26,7 @@ class FcpePitchExtractor(PitchExtractor):
|
|||||||
f0_mel_max = 1127 * np.log(1 + f0_max / 700)
|
f0_mel_max = 1127 * np.log(1 + f0_max / 700)
|
||||||
|
|
||||||
f0 = self.fcpe.infer(
|
f0 = self.fcpe.infer(
|
||||||
audio.to(self.device_fcpe).unsqueeze(0).float(),
|
audio.to(self.device).unsqueeze(0).float(),
|
||||||
sr=16000,
|
sr=16000,
|
||||||
decoder_mode="local_argmax",
|
decoder_mode="local_argmax",
|
||||||
threshold=0.006,
|
threshold=0.006,
|
||||||
|
Loading…
Reference in New Issue
Block a user