Downloading the repositories and bundles
Create a directory on your virtual machine to build your Arm NN distribution for your Raspberry Pi.
To create a directory and build your distribution:
-
Enter the following commands:
mkdir armnn-pi && cd armnn-pi export BASEDIR=`pwd`
-
Download the Compute Library, Boost, Protobuf, TensorFlow, ONNX, FlatBuffer, and Arm NN git repositories and source bundles. To download the repositories and bundles, enter the following commands:
git clone https://github.com/Arm-software/ComputeLibrary.git git clone https://github.com/Arm-software/armnn wget https://dl.bintray.com/boostorg/release/1.64.0/source/boost_1_64_0.tar.bz2 tar xf boost_1_64_0.tar.bz2 git clone -b v3.12.0 https://github.com/google/protobuf.git git clone https://github.com/tensorflow/tensorflow.git cd tensorflow/ git checkout fcc4b966f1265f466e82617020af93670141b009 git clone https://github.com/onnx/onnx.git cd onnx git fetch https://github.com/onnx/onnx.git 553df22c67bee5f0fe6599cff60f1afc6748c635 && git checkout FETCH_HEAD wget -O flatbuffers-1.12.0.tar.gz https://github.com/google/flatbuffers/archive/v1.12.0.tar.gz tar xf flatbuffers-1.12.0.tar.gz