mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-08 20:10:44 +08:00
fix(train): mysterious importing order
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
from typing import Any, Optional, Union
|
||||
from typing import Optional, Union
|
||||
|
||||
import numpy as np
|
||||
import torch
|
||||
from torchfcpe import spawn_bundled_infer_model
|
||||
|
||||
from .f0 import F0Predictor
|
||||
|
||||
@@ -24,6 +23,8 @@ class FCPE(F0Predictor):
|
||||
device,
|
||||
)
|
||||
|
||||
from torchfcpe import spawn_bundled_infer_model # must be imported at here, or it will cause fairseq crash on training
|
||||
|
||||
self.model = spawn_bundled_infer_model(self.device)
|
||||
|
||||
def compute_f0(
|
||||
|
||||
Reference in New Issue
Block a user