Ultra-Light-Fast-Generic-Face-Detector-1MB
Ultra-Light-Fast-Generic-Face-Detector-1MB copied to clipboard
Onnxruntime Error in run_video_face_detect_onnx.py
I did pip3 install -r requirements.txt to install dependencies.
OS: Mac OS Catalina 10.15.7 Python Version: 3.8
This is the error I get when I run python3 run_video_face_detect_onnx.py:
WARNING:root:This caffe2 python run failed to load cuda module:No module named 'caffe2.python.caffe2_pybind11_state_gpu',and AMD hip module:No module named 'caffe2.python.caffe2_pybind11_state_hip'.Will run in CPU only mode.
/Users/rai0x00/Library/Python/3.8/lib/python/site-packages/onnxruntime/capi/_pybind_state.py:14: UserWarning: Cannot load onnxruntime.capi. Error: 'dlopen(/Users/rai0x00/Library/Python/3.8/lib/python/site-packages/onnxruntime/capi/onnxruntime_pybind11_state.so, 2): Library not loaded: /usr/local/opt/libomp/lib/libomp.dylib
Referenced from: /Users/rai0x00/Library/Python/3.8/lib/python/site-packages/onnxruntime/capi/onnxruntime_pybind11_state.so
Reason: image not found'.
warnings.warn("Cannot load onnxruntime.capi. Error: '{0}'.".format(str(e)))
Traceback (most recent call last):
File "run_video_face_detect_onnx.py", line 13, in <module>
import onnxruntime as ort
File "/Users/rai0x00/Library/Python/3.8/lib/python/site-packages/onnxruntime/__init__.py", line 13, in <module>
from onnxruntime.capi._pybind_state import get_all_providers, get_available_providers, get_device, set_seed, \
ImportError: cannot import name 'get_all_providers' from 'onnxruntime.capi._pybind_state' (/Users/rai0x00/Library/Python/3.8/lib/python/site-packages/onnxruntime/capi/_pybind_state.py)