Aktionen

AI on Rasp Pi: Unterschied zwischen den Versionen

Aus exmediawiki

Zeile 32: Zeile 32:
 
=KI-Workaround installieren on Raspberry Pi 4=
 
=KI-Workaround installieren on Raspberry Pi 4=
 
type in Terminal:
 
type in Terminal:
 +
 +
notwendigen Abhängikeiten installieren:
 +
  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 virtualenv Pillow numpy pygame
 +
Ordner ''jupyter-sandbox'' erstellen
 
  mkdir jupyter-sandbox
 
  mkdir jupyter-sandbox
 +
in Ordner navigieren
 
  cd jupyter-sandbox
 
  cd jupyter-sandbox
 +
Virtual environement ''venv'' erstellen
 
  python3 -m venv venv
 
  python3 -m venv venv
 +
'''venv'' aktivieren
 
  . venv/bin/activate
 
  . venv/bin/activate
 +
pip installieren
 
  sudo apt-get install -y python3-pip
 
  sudo apt-get install -y python3-pip
 +
upgrade
 
  pip3 install --upgrade setuptools
 
  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
+
passende Version downloaden unter: https://www.tensorflow.org/lite/guide/python und in meinen derzeitigen ordner kopieren:
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 .
 
  cp ~/Downloads/tflite_runtime-1.14.0-cp37-cp37m-linux_armv7l.whl .
 
oder direkt in den jeweiligen Ordner mit wget downloaden:
 
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
 
  wget https://dl.google.com/coral/python/tflite_runtime-1.14.0-cp37-cp37m-linux_armv7l.whl
 +
Tensorflow_Lite installieren
 
  pip3 install tflite_runtime-1.14.0-cp37-cp37m-linux_armv7l.whl  
 
  pip3 install tflite_runtime-1.14.0-cp37-cp37m-linux_armv7l.whl  
 +
jupyter notebook installieren
 
  pip3 install jupyter
 
  pip3 install jupyter
 +
tensorflow installieren
 
  pip3 install tensorflow
 
  pip3 install tensorflow
 +
keras installieren
 
  pip3 install keras
 
  pip3 install keras
 +
Virtual environment upgraden
 
  sudo pip install --upgrade virtualenv
 
  sudo pip install --upgrade virtualenv
 +
jupyter-notebook starten
 +
jupyter-notebook

Version vom 27. November 2019, 11:44 Uhr

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:

notwendigen Abhängikeiten installieren:

 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 virtualenv Pillow numpy pygame

Ordner jupyter-sandbox erstellen

mkdir jupyter-sandbox

in Ordner navigieren

cd jupyter-sandbox

Virtual environement venv erstellen

python3 -m venv venv

'venv aktivieren

. venv/bin/activate

pip installieren

sudo apt-get install -y python3-pip

upgrade

pip3 install --upgrade setuptools

passende Version downloaden unter: 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

Tensorflow_Lite installieren

pip3 install tflite_runtime-1.14.0-cp37-cp37m-linux_armv7l.whl 

jupyter notebook installieren

pip3 install jupyter

tensorflow installieren

pip3 install tensorflow

keras installieren

pip3 install keras

Virtual environment upgraden

sudo pip install --upgrade virtualenv

jupyter-notebook starten

jupyter-notebook