Closed SaekoYes closed 2 years ago
The issue is most likely that you are on Python 3.10 and onnxruntime has not released a build for 3.10 yet, only 3.9. You can either install an older python version, build onnxruntime yourself or report the issue with new python versions to onnxruntime.
The issue is most likely that you are on Python 3.10 and onnxruntime has not released a build for 3.10 yet, only 3.9. You can either install an older python version, build onnxruntime yourself or report the issue with new python versions to onnxruntime.
M8 thats what i did. Still nothing worked
Could you give some more information on what you tried and what output you got then?
Could you give some more information on what you tried and what output you got then?
when i run python facetracker.py -c 0 -W 1280 -H 720 --discard-after 0 --scan-every 0 --no-3d-adapt 1 --max-feature-updates 900
it outputs
File "/home/lamar/OpenSeeFace/facetracker.py", line 250, in
tried the same thing on a new install and it outputted
Traceback (most recent call last):
File "/home/lamar/Downloads/OpenSeeFace-master/facetracker.py", line 132, in
thats cause the previous one i showed was edited slightly by me
The second post's output is about what is expected if onnxruntime is not installed. What output do you get from pip3 install onnxruntime
and pip3 --version
? If you installed python 3.9, pip3 should show something like: pip 20.3.4 from /usr/lib/python3/dist-packages/pip (python 3.9)
Otherwise, if you have both python 3.9 and 3.10 installed, you might have to create a virtual environment, in which pip should have the correct version: python3.9 -mvenv env
Then activate it: . env/bin/activate
Also, which version of onnxruntime is installed? You can find out with: pip3 list | grep onnxruntime
I just tested a freshly checked out copy of this repository with python 3.9 and onnxruntime 1.11.1 and it works fine on Linux for me.
i installed onnxruntime using pyenv to switch python versions but everything else was installed normally
I don't really have any experience with pyenv, so I'm not sure what could have gone wrong. Still, you should be able to confirm the version of onnxruntime being used as follows:
$ python
Python 3.9.2 (default, Feb 28 2021, 17:03:44)
[GCC 10.2.1 20210110] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import onnxruntime
>>> onnxruntime.__version__
'1.11.1'
>>>
ok i fixed that but now the error is
Traceback (most recent call last):
File "/home/lamar/Downloads/OpenSeeFace-master/facetracker.py", line 250, in
I just merged a pull request that should hopefully fix this issue.
oh that fixed it thank u :D
sorry for being annoying
No worries, it's fine! I'm glad it's working now.
Literally cant install this thing cause dependencies are hard to install, are outdated or are just an inconvenience to install.and cant find a proper guide for arch linux.