Open mad-ady opened 4 years ago
Please have a look into tensorflow docs and support forums or on Stackoverflow. You seem to have the wrong binary for your machine, but I cannot tell more without reading the tensorflow support forums either.
I agree, it's not an issue with this project. However, for people with weaker CPUs here's the solution: I've installed tensorflow library from here: https://github.com/yaroslavvb/tensorflow-community-wheels/issues/158:
wget https://github.com/agkphysics/tensorflow-wheels/releases/download/tf_2.4.0_nogpu_noavx_nomkl/tensorflow_cpu-2.4.0-cp38-cp38-linux_x86_64.whl
sudo pip3 install --upgrade tensorflow_cpu-2.4.0-cp38-cp38-linux_x86_64.whl
This replaced the stock tensorflow-cpu python library with the custom built one. Now virtual_webcam_background works well (about 5 fps, 70% CPU usage, 4 cores) and my kid is happy :D
Thank you for the feedback! We'll document your solution.
If there is a FAQ there should be a mention about the Illegal Instruction error that you get when you start the python code - that's how I learned my CPU doesn't do AVX. Only then you need to find the alternate tensorflow package.
There is only the README, the wiki and the website for this project.
I am not sure what's the goal for this project. I guess currently the installation requires quite a bit of expert knowledge (at least in the sense of being able to use the shell) anyway. When there would be a nice UI, it should also try to guide the user to install the right tensorflow (CPU/GPU/Builds for older CPUs).
I'm trying to run this project on a J4105 Gemini Lake Celeron CPU (an Odroid H2), running Ubuntu 20.04, but I think I'm failing because of the lack of AVX instruction set.
vpxor
belongs to the AVX instruction set and can't run.So - can I get a tensorflow library that doesn't need AVX? Or can I run it through QEMU or something that can emulate AVX?
Thanks