Aktionen

AI on Rasp Pi

Aus exmediawiki

21.11.2019



alle Notebooks findet ihr unter /exMedia_Machines/Seminar_Einführung-in-die-Programmierung-KI/:



June 27, 2016

The US Air Force has just completed dogfighting trials in a simulator, pitching the software against retired Air Force Colonel Gene Lee. The AI – which ran on a $35 RaspberryPi computer – was deliberately handicapped but still managed to shoot down its fleshy opponent every time and evade his attempts to kill it.

ALPHA is "the most aggressive, responsive, dynamic and credible AI I've seen to date," Lee said. "I was surprised at how aware and reactive it was. It seemed to be aware of my intentions and reacting instantly to my changes in flight and my missile deployment. It knew how to defeat the shot I was taking. It moved instantly between defensive and offensive actions as needed."

install Processing on a Rasp

type in terminal:

curl https://processing.org/download/install-arm.sh | sudo sh


...or go to Processing’s downloads page to download and install it on your own.

Processing2.png

RemoteDesktop mit Teamviewer

Mit der Software Teamviewer können wir aus der Ferne auf unsere Lab-Rechner zugreifen.

Eine Anleitung findet ihr hier: Per_Teamviewer_auf_AI-Lab-Rechner_zugreifen


KI-Workaround installieren on Raspberry Pi 4

type in Terminal:

mkdir jupyter-sandbox
cd jupyter-sandbox
python3 -m venv venv
. venv/bin/activate
sudo apt-get install -y python3-pip
pip3 install --upgrade setuptools
sudo apt-get install -y libatlas-base-dev libblas-dev liblapack-dev libhdf5-dev libc-ares-dev libeigen3-dev build-essential libsdl-ttf2.0-0 python-pygame python3-venv festival
pip3 install virtualenv Pillow numpy pygame
pip3 install --upgrade setuptools

passende Version downloaden von: https://www.tensorflow.org/lite/guide/python und in meinen derzeitigen ordner kopieren:

cp ~/Downloads/tflite_runtime-1.14.0-cp37-cp37m-linux_armv7l.whl .

oder direkt in den jeweiligen Ordner mit wget downloaden:

wget https://dl.google.com/coral/python/tflite_runtime-1.14.0-cp37-cp37m-linux_armv7l.whl
pip3 install tflite_runtime-1.14.0-cp37-cp37m-linux_armv7l.whl 
pip3 install jupyter
pip3 install tensorflow
pip3 install keras
sudo pip install --upgrade virtualenv