New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Instructions for x86-64 install? Getting Illegal instruction #6
Comments
I was actually just working on trying to build this from the ground up for amd64. Would be nice to see |
Note if I uninstall tensorflow it doesn't crash, just complains it couldn't find it:
Makes me think I'm not installing the right TF wheel. |
@edalquist even if tensorflow isn't installed at all you'll just see a ModuleNotFoundError and argos will keep running, since the object detector is running in a separate thread. so just that thread crashes (and my bad - i haven't handled killing the whole process on the tensorflow thread crashing) it doesn't matter that your underlying OS is ubuntu. it could have been OSX and you'd have faced the same error above. what matters is the cpu architecture (armh, amd64, x86). pip looks for architecture-specific wheels. for mainstream architectures (amd64, x86), you don't need to install a specific wheel of tensorflow. that workaround was the only way for raspberry pi armv6/7 architectures whose pip repositories did not contain tensorflow 2.x wheels yet. you may just 'pip install tensorflow==2.4.0' on a mainstream architecture machine (or docker container). (e.g. thats what you need to do on your macbook pro as well) also, the current Dockerfile in the repo is based from |
FWIW the wheel should have been tensorflow-2.4.0-cp37-cp37m-manylinux2010_x86_64.whl, since we're using python3.7 |
Interesting, somehow I ended up on python 3.8, I guess that is the default "python3" for ubuntu 20.02. I did I'll try recreating the venv but explicitly using 3.7 |
No luck with a Python 3.7 install either:
Same |
alright, i just pushed 2 new https://hub.docker.com/repository/docker/angadsingh/argos/tags example runs:
|
Thanks! I'll get a docker vm setup tomorrow and give it a try. |
regarding your issue. i think its this: what machine are you running this on? is it a NAS? your CPU might not have AVX instructions. tensorflow apparently uses them since 1.6 (but we need 2.x so cant downgrade to 1.5) and in that case you'll have to build tensorflow from source. try out the different tensorflow docker versions from here and see which one works on your machine: https://hub.docker.com/r/tensorflow/tensorflow/tags (install an image and then just run python and do |
Ah this is an old Xenon E5 server, I can try moving the container over to a Ryzen machine and see if it is happier. |
That was it! Moved from a Xeon E5-2670 to a Ryzen 9 3900X and it works! |
I'm trying to see if I can get this running in an LXC container running ubuntu server 20.02
The one change I made from the instructions is to install TF via:
When running stream.py I get:
Here is my OpenCV build info dump:
The text was updated successfully, but these errors were encountered: