mirror of
https://github.com/w-okada/voice-changer.git
synced 2025-03-13 03:17:41 +03:00
WIP: refactor, model switcher for native 3 mac
This commit is contained in:
parent
a6efaaa381
commit
bdf11d9206
@ -1,7 +1,16 @@
|
||||
import sys
|
||||
sys.path.append("MMVC_Client_v13/python")
|
||||
from dataclasses import dataclass, asdict
|
||||
import os
|
||||
if sys.platform.startswith('darwin'):
|
||||
baseDir = [x for x in sys.path if x.endswith("Contents/MacOS")]
|
||||
if len(baseDir) != 1:
|
||||
print("baseDir should be only one ", baseDir)
|
||||
sys.exit()
|
||||
modulePath = os.path.join(baseDir[0], "MMVC_Client_v13", "python")
|
||||
sys.path.append(modulePath)
|
||||
else:
|
||||
sys.path.append("MMVC_Client_v13/python")
|
||||
|
||||
from dataclasses import dataclass, asdict
|
||||
import numpy as np
|
||||
import torch
|
||||
import onnxruntime
|
||||
|
@ -1,7 +1,16 @@
|
||||
import sys
|
||||
sys.path.append("MMVC_Client_v15/python")
|
||||
from dataclasses import dataclass, asdict
|
||||
import os
|
||||
if sys.platform.startswith('darwin'):
|
||||
baseDir = [x for x in sys.path if x.endswith("Contents/MacOS")]
|
||||
if len(baseDir) != 1:
|
||||
print("baseDir should be only one ", baseDir)
|
||||
sys.exit()
|
||||
modulePath = os.path.join(baseDir[0], "MMVC_Client_v15", "python")
|
||||
sys.path.append(modulePath)
|
||||
else:
|
||||
sys.path.append("MMVC_Client_v15/python")
|
||||
|
||||
from dataclasses import dataclass, asdict
|
||||
import numpy as np
|
||||
import torch
|
||||
import onnxruntime
|
||||
|
Loading…
x
Reference in New Issue
Block a user