File tree Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Expand file tree Collapse file tree 1 file changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -48,19 +48,16 @@ def note_to_hz(note_name):
48
48
except :
49
49
return None
50
50
51
- def load_hubert (hubert_model_path , config ):
51
+ def load_hubert (hubert_model_path ):
52
52
from fairseq import checkpoint_utils
53
53
54
54
models , _ , _ = checkpoint_utils .load_model_ensemble_and_task (
55
55
[hubert_model_path ],
56
56
suffix = "" ,
57
57
)
58
58
hubert_model = models [0 ]
59
- hubert_model = hubert_model .to (config .device )
60
- if config .is_half :
61
- hubert_model = hubert_model .half ()
62
- else :
63
- hubert_model = hubert_model .float ()
59
+ #hubert_model = hubert_model.to(config.device)
60
+ hubert_model = hubert_model .float ()
64
61
65
62
hubert_models = hubert_model .eval ()
66
63
return hubert_models
@@ -292,8 +289,8 @@ def vc_single_dont_save(
292
289
if self .hubert_model is None :
293
290
self .hubert_model = load_hubert (hubert_model_path , self .config )
294
291
295
- try :
296
- self .if_f0 = self .cpt .get ("f0" , 1 )
292
+ # try:
293
+ # self.if_f0 = self.cpt.get("f0", 1)
297
294
except NameError :
298
295
message = "Model was not properly selected"
299
296
print (message )
You can’t perform that action at this time.
0 commit comments