Skip to content

Commit bf41d8b

Browse files
authored
fix(macos): disable OpenMP parallelism to prevent segmentation fault (#73)
1 parent 8cd1fdd commit bf41d8b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
if sys.platform == "darwin":
1111
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
12+
os.environ["OMP_NUM_THREADS"] = "1"
1213

1314
from infer.modules.vc import VC, show_info, hash_similarity
1415
from infer.modules.uvr5.modules import uvr

0 commit comments

Comments
 (0)