Run Setup
All required Python packages for ML demos are already installed in AIML firmware image. Our
demos run using Python3 so we have added package for Python3 and not for python. We have
also provide support for Python and Python3 PIP Package. Through which we can add or remove
any python package and remove dependencies for rebuilding firmware image each times.
To install any python3 or python package use command:
<pip3 or pip> install <PACKAGE NAME OR PACKAGE WHEEL NAME>
To remove any python3 or python package use command:
<pip3 or pip> uninstall <PACKAGE NAME>
Some python packages, i.e. tensorflow has no standard python wheel package for ARM
AARCH64 platform so we need to cross compile from source and need to create one (wheel
package) for board. We already did that and provide wheel packages at home folder to setup
python module on our board. For that user need to run
setup_ml_demo.sh
script using below
commands:
# sh ~/setup_ml_demo.sh
This script takes approximately 15-20 minutes and will install all required python3 packages for
ML demos so
it has to be run once
before running all the ML demos
. We already provide
required wheel package at home folder so this script do not required any internet connectivity for
installing packages. However, apart from script if you want to install any package as describe
above then you required clientless (No firewall) internet connectivity.
ML Demos not comes with default firmware images. This is because we do not want to increase
size of original firmware image as it take much times to flash SD card. In addition, by separate
release of ML demos we can remove dependencies of firmware image release. This lead us to
improve our demos without affecting firmware packages if we don’t have any dependencies of
software or packages.