voice-changer/server/voice_changer/RVC/embedder/FairseqContentvec.py

12 lines
448 B
Python
Raw Normal View History

2023-05-02 06:11:00 +03:00
from torch import device
from const import EnumEmbedderTypes
from voice_changer.RVC.embedder.Embedder import Embedder
from voice_changer.RVC.embedder.FairseqHubert import FairseqHubert
class FairseqContentvec(FairseqHubert):
def loadModel(self, file: str, dev: device, isHalf: bool = True) -> Embedder:
super().loadModel(file, dev, isHalf)
2023-05-02 14:57:12 +03:00
super().setProps(EnumEmbedderTypes.contentvec, file, dev, isHalf)
2023-05-02 06:11:00 +03:00
return self