Skip to content

Commit 43563bc

Browse files
committed
Changing the fcpe checkpoint loading method"
1 parent 72f1f59 commit 43563bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rvc/lib/predictors/f0.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import torch
33

44
from rvc.lib.predictors.RMVPE import RMVPE0Predictor
5-
from torchfcpe import spawn_bundled_infer_model
5+
from torchfcpe import spawn_infer_model_from_pt
66
import torchcrepe
77
from swift_f0 import SwiftF0
88
import numpy as np
@@ -62,7 +62,7 @@ def __init__(self, device, sample_rate=16000, hop_size=160):
6262
self.device = device
6363
self.sample_rate = sample_rate
6464
self.hop_size = hop_size
65-
self.model = spawn_bundled_infer_model(self.device)
65+
self.model = spawn_infer_model_from_pt(os.path.join("rvc", "models", "predictors", "fcpe.pt"), self.device, bundled_model=True)
6666

6767
def get_f0(self, x, p_len=None, filter_radius=0.006):
6868
if p_len is None:

0 commit comments

Comments
 (0)