WIP: refactor, model switcher for native 3 mac
This commit is contained in:
parent
a6efaaa381
commit
bdf11d9206
@ -1,7 +1,16 @@
|
|||||||
import sys
|
import sys
|
||||||
sys.path.append("MMVC_Client_v13/python")
|
|
||||||
from dataclasses import dataclass, asdict
|
|
||||||
import os
|
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 numpy as np
|
||||||
import torch
|
import torch
|
||||||
import onnxruntime
|
import onnxruntime
|
||||||
|
@ -1,7 +1,16 @@
|
|||||||
import sys
|
import sys
|
||||||
sys.path.append("MMVC_Client_v15/python")
|
|
||||||
from dataclasses import dataclass, asdict
|
|
||||||
import os
|
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 numpy as np
|
||||||
import torch
|
import torch
|
||||||
import onnxruntime
|
import onnxruntime
|
||||||
|
Loading…
x
Reference in New Issue
Block a user