mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-26 06:55:02 +03:00
12 lines
428 B
Python
12 lines
428 B
Python
|
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 FairseqHubertJp(FairseqHubert):
|
||
|
def loadModel(self, file: str, dev: device, isHalf: bool = True) -> Embedder:
|
||
|
super().loadModel(file, dev, isHalf)
|
||
|
self.embedderType = EnumEmbedderTypes.hubert_jp
|
||
|
return self
|