Skip to content

Instantly share code, notes, and snippets.

@aaronmarkham
Last active July 10, 2020 16:56
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save aaronmarkham/b3d0c715abca92ccc4b79ed0f19d1916 to your computer and use it in GitHub Desktop.
Save aaronmarkham/b3d0c715abca92ccc4b79ed0f19d1916 to your computer and use it in GitHub Desktop.
Raspberry Pi MXNet setup
Requirements:
Raspberry Pi 3B with Stretch.
If you have an existing installation, it must be upgraded to Stretch.
Follow these directions to upgrade: https://www.datenreise.de/en/raspberry-pi-raspbian-update-update-jessie-to-stretch/
Format your SD card with SD Card Formatter.
Download, unzip, then copy contents of the NOOBS (network install) zip file to SD card.
Boot up the Pi and follow the prompts to install the headless Raspbian.
Login to the pi with user `pi` and password `raspberry`.
Install MXNet dependencies with:
```
sudo apt-get update
sudo apt-get install -y \
apt-transport-https \
build-essential \
ca-certificates \
cmake \
curl \
git \
libatlas-base-dev \
libcurl4-openssl-dev \
libjemalloc-dev \
liblapack-dev \
libopenblas-dev \
libopencv-dev \
libzmq3-dev \
ninja-build \
python-dev \
software-properties-common \
sudo \
unzip \
virtualenv \
wget
```
Install virtualenv with:
```
sudo pip install virtualenv
```
Create a Python 2.7 environment for MXNet with:
```
virtualenv -p `which python` mxnet_py27
```
Download the mxnet wheel with:
```
wget https://mxnet-public.s3.amazonaws.com/install/raspbian/mxnet-1.5.0-py2.py3-none-any.whl
```
Install mxnet with:
```
pip install mxnet-1.5.0-py2.py3-none-any.whl
```
Follow this example to test it out.
https://raw.githubusercontent.com/apache/incubator-mxnet/eca332cbde12106451b76a74364a27e0079613a9/docs/tutorials/embedded/wine_detector.md
Updates to this file:
mv Inception-BN-0126.params Inception_BN-0000.params
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment