mirror of
https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git
synced 2026-06-08 12:00:49 +08:00
fix: no attribute 'FILE_LIKE'' & update instructions
This commit is contained in:
@@ -13,6 +13,7 @@ from torchaudio.transforms import Resample
|
||||
|
||||
from rvc.f0 import Generator
|
||||
from rvc.synthesizer import load_synthesizer
|
||||
from rvc.utils import FileLike
|
||||
|
||||
|
||||
class RVC:
|
||||
@@ -20,7 +21,7 @@ class RVC:
|
||||
self,
|
||||
key: Union[int, float],
|
||||
formant: Union[int, float],
|
||||
pth_path: torch.serialization.FILE_LIKE,
|
||||
pth_path: FileLike, # type: ignore
|
||||
index_path: str,
|
||||
index_rate: Union[int, float],
|
||||
n_cpu: int = os.cpu_count(),
|
||||
|
||||
Reference in New Issue
Block a user