Skip to content
Permalink
Browse files

Update configure.

1. Update TensorFlow to v1.11.0.
2. Add dependencies for framebuffer dashboard.

Signed-off-by: Bofu Chen (bafu) <bofu@dt42.io>
  • Loading branch information...
bafu committed May 13, 2019
1 parent 1bacef8 commit d278710ccbdb393e94eb94f1e3b498344e6c0c02
Showing with 8 additions and 5 deletions.
  1. +8 −5 configure
@@ -46,13 +46,16 @@ install_system_dependencies() {
mosquitto \
mosquitto-clients \
python3-dev \
python3-opengl \
python3-pip \
supervisor \
wget
sudo service mongodb start
sudo -H pip3 install --timeout 60 cython
sudo -H pip3 install --timeout 60 logzero
sudo -H pip3 install --timeout 60 paho-mqtt
sudo -H pip3 install --timeout 60 PyOpenGL
sudo -H pip3 install --timeout 60 PyOpenGL-accelerate
sudo -H pip3 install --timeout 60 watchdog
}

@@ -160,14 +163,14 @@ install_tensorflow() {
if [ x"$DISTRIBUTIONID" = x"Ubuntu" ]; then
sudo -H pip3 install tensorflow
elif [ x"$DISTRIBUTIONID" = x"Raspbian" ]; then
TENSORFLOW_VERSION="1.0.1"
TENSORFLOW_PKGNAME="tensorflow-${TENSORFLOW_VERSION}-cp27-none-linux_armv7l.whl"
if [ ! -e "$TENSORFLOW_PKGNAME" ]; then
wget https://github.com/samjabrahams/tensorflow-on-raspberry-pi/releases/download/v${TENSORFLOW_VERSION}/$TENSORFLOW_PKGNAME
TENSORFLOW_PKGNAME="tensorflow-1.11.0-cp35-cp35m-linux_armv7l.whl"
if [ ! -e "/tmp/$TENSORFLOW_PKGNAME" ]; then
wget -O /tmp/$TENSORFLOW_PKGNAME \
https://github.com/PINTO0309/Tensorflow-bin/raw/master/tensorflow-1.11.0-cp35-cp35m-linux_armv7l_jemalloc_multithread.whl
else
echo "$TENSORFLOW_PKGNAME has existed, skip to download it."
fi
sudo -H pip3 install $TENSORFLOW_PKGNAME
sudo -H pip3 install /tmp/$TENSORFLOW_PKGNAME
fi
}

0 comments on commit d278710

Please sign in to comment.
You can’t perform that action at this time.