@M203 i tried your images again now that tensorflow is stable, but couldn’t get it to identify either the person or the cars in your sample photos. I wonder if its the glare on the windows that’s confusing the analysis? Feel free to attach a pic from outside or a different angle if you like
For others who are getting stuck on this CPU instruction issue, here is the way i ended up doing it that seems to work reliably and not crash home assistant.
Make a directory on your host to store the generated wheel, this folder must also be accessible to your HA container
cd /volume1/motion/storage/tensorflow/
mkdir builds
cd builds
Grab the office devel docker for tensorflow
docker run -it -w /tensorflow -v $PWD:/mnt -e HOST_PERMS="$(id -u):$(id -g)" tensorflow/tensorflow:1.11.0-devel bash
You are now in the temp build container, so update it just in case it has changed
git pull
Grab python 3.6, to match the python distributed with HA
add-apt-repository ppa:jonathonf/python-3.6
apt update
apt install python3.6 python3.6-dev
Configure (i accepted all the defaults, make sure you choose the python 3.6 version )
./configure
Here is how it looked on my system;
root@10bc21dc373f:/tensorflow# ./configure
WARNING: --batch mode is deprecated. Please instead explicitly shut down your Bazel server using the command “bazel shutdown”.
You have bazel 0.15.0 installed.
Please specify the location of python. [Default is /usr/bin/python]: /usr/bin/python3.6
Found possible Python library paths:
/usr/lib/python3/dist-packages
/usr/local/lib/python3.6/dist-packages
Please input the desired Python library path to use. Default is [/usr/lib/python3/dist-packages]
/usr/local/lib/python3.6/dist-packages
Hit enter until the command completes, unless you want to change things or enable GPU features etc
Build - this took 3 hours on my NAS
bazel build --config=opt //tensorflow/tools/pip_package:build_pip_package
Create the package
./bazel-bin/tensorflow/tools/pip_package/build_pip_package /mnt
chown $HOST_PERMS /mnt/tensorflow-*
Exit the temp build container and enter into HA
docker exec -it homeassistant /bin/bash
Install the generated wheel (change path to whatever you mounted the build directory as)
pip3 install /storagemotion/tensorflow/builds/tensorflow-1.11.0-cp36-cp36m-linux_x86_64.whl
Exit the container and restart
docker restart homeassistant
Then see how you go!