wip:support m1 mac 1
This commit is contained in:
parent
53fc89fb9a
commit
c85a16054f
@ -73,8 +73,11 @@ class SoVitsSvc40v2:
|
|||||||
|
|
||||||
# hubert model
|
# hubert model
|
||||||
try:
|
try:
|
||||||
# vec_path = hubertTorchModel
|
if sys.platform.startswith('darwin'):
|
||||||
vec_path = "hubert/checkpoint_best_legacy_500.pt"
|
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(
|
models, saved_cfg, task = checkpoint_utils.load_model_ensemble_and_task(
|
||||||
[vec_path],
|
[vec_path],
|
||||||
suffix="",
|
suffix="",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user