Mangio621 / Mangio-RVC-Fork

*CREPE+HYBRID TRAINING* A very experimental fork of the Retrieval-based-Voice-Conversion-WebUI repo that incorporates a variety of other f0 methods, along with a hybrid f0 nanmedian method.
MIT License
931 stars 207 forks source link

Segmentation fault 11 on M1 Mac (+ faiss-cpu error) #183

Open xjax9012 opened 6 months ago

xjax9012 commented 6 months ago

Using "Train feature index" results in segmentation fault:

run.sh: line 153: 30112 Segmentation fault: 11  python3.8 infer-web.py --pycmd python3.8
xxx@xxxs-Mac Mangio-RVC-Fork-23.7.0 % /Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/multiprocessing/resource_tracker.py:203: UserWarning: resource_tracker: There appear to be 1 leaked semaphore objects to clean up at shutdown
  warnings.warn('resource_tracker: There appear to be %d '

Already figured out that many people recommended downgrading faiss-cpu to 1.7.0 (and it's also written in the README file), however I'm unable to do so as I get the following error:

ERROR: Failed building wheel for faiss-cpu
  Running setup.py clean for faiss-cpu
Failed to build faiss-cpu
ERROR: Could not build wheels for faiss-cpu, which is required to install pyproject.toml-based projects

I was searching for a solution everywhere and if I understood correctly according to this, Intel Mac users were able to avoid this problem by using a pre-built wheel instead but unfortunately it seems that there's no arm version so I'm basically stuck again.

I'm fairly new to this and I'm not sure what's exactly going wrong here so I wonder if anyone could suggest any workaround.