mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-01-23 21:45:00 +03:00
wip:support m1 mac 1
This commit is contained in:
parent
53fc89fb9a
commit
c85a16054f
@ -73,8 +73,11 @@ class SoVitsSvc40v2:
|
||||
|
||||
# hubert model
|
||||
try:
|
||||
# vec_path = hubertTorchModel
|
||||
vec_path = "hubert/checkpoint_best_legacy_500.pt"
|
||||
if sys.platform.startswith('darwin'):
|
||||
vec_path = os.path.join(sys._MEIPASS, "hubert/checkpoint_best_legacy_500.pt")
|
||||
else:
|
||||
vec_path = "hubert/checkpoint_best_legacy_500.pt"
|
||||
|
||||
models, saved_cfg, task = checkpoint_utils.load_model_ensemble_and_task(
|
||||
[vec_path],
|
||||
suffix="",
|
||||
|
Loading…
Reference in New Issue
Block a user