1
0
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:
源文雨
2024-06-16 19:33:23 +09:00
parent add4642b7e
commit d9a116f4f7
3 changed files with 6 additions and 5 deletions

View File

@@ -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(