1
0
mirror of https://github.com/fumiama/Retrieval-based-Voice-Conversion-WebUI.git synced 2026-06-05 01:10:22 +08:00

fix(macos): disable OpenMP parallelism to prevent segmentation fault (#73)

This commit is contained in:
jwinr
2024-07-18 03:48:30 -04:00
committed by GitHub
parent 8cd1fdd372
commit bf41d8bafd

1
web.py
View File

@@ -9,6 +9,7 @@ load_dotenv("sha256.env")
if sys.platform == "darwin":
os.environ["PYTORCH_ENABLE_MPS_FALLBACK"] = "1"
os.environ["OMP_NUM_THREADS"] = "1"
from infer.modules.vc import VC, show_info, hash_similarity
from infer.modules.uvr5.modules import uvr