13
Machine Learning

Machine learning with raspberrypi

Embed Size (px)

Citation preview

Page 1: Machine learning with raspberrypi

Machine Learning

Page 2: Machine learning with raspberrypi
Page 3: Machine learning with raspberrypi

Some Machine Learning Tools

Page 4: Machine learning with raspberrypi

Deep Belief Image Recognition

Page 5: Machine learning with raspberrypi

Before We Startsudo nano /boot/config.txt

# add gpu line below to bottom of file

gpu_mem=128

sudo reboot

Page 6: Machine learning with raspberrypi

Mercurial

Sudo apt-get install -y mercurial

Page 7: Machine learning with raspberrypi

Deep Belief SDK• Clone this repository https://github.com/jetpacapp/DeepBeliefSDK

into ~/projects/DeepBeliefSDK

sudo apt-get install git

git clone https://github.com/jetpacapp/DeepBeliefSDK.git

Page 8: Machine learning with raspberrypi

Eigen• Eigen is a C++ template library for linear algebra: matrices, vectors,

numerical solvers, and related algorithms. hg clone https://bitbucket.org/eigen/eigen

ln -s ~/eigen ~/DeepBeliefSDK/eigen

Page 9: Machine learning with raspberrypi

Installing GCC-4.8 & G++-4.8

sudo apt-get install gcc-4.8 g++-4.8

sudo rm -rf /usr/bin/gcc

sudo rm -rf /usr/bin/g++

sudo ln -s /usr/bin/gcc-4.8 /usr/bin/gcc

sudo ln -s /usr/bin/g++-4.8 /usr/bin/g++

Page 10: Machine learning with raspberrypi

Building Timecd ~/DeepBeliefSDK/sourcemake clean

#Building to the Target pi2 for Raspberry pi 2 and pi for older.make GEMM=eigen TARGET=pi2

#Trying an Example :./jpcnn -i data/dog.jpg -n ../networks/jetpac.ntwk -t -m s -d

Page 11: Machine learning with raspberrypi

Nano source/src/lib/pi/mailbox.cppChange to the following Line !

#define MAJOR_NUM 249

sudo rm -rf /var/lib/jpcnn/

Ensure that you’re under source/ folder

Sudo cp libjpcnn.so /usr/lib/Sudo cp src/include/libjpcnn.h /usr/include

Can't open device file: /var/lib/jpcnn/char_dev

Page 12: Machine learning with raspberrypi

Thank you :D

Page 13: Machine learning with raspberrypi