Machine learning with raspberrypi
-
Upload
elmokhtar-benfraj -
Category
Technology
-
view
88 -
download
0
Transcript of Machine learning with raspberrypi
Machine Learning
Some Machine Learning Tools
Deep Belief Image Recognition
Before We Startsudo nano /boot/config.txt
# add gpu line below to bottom of file
gpu_mem=128
sudo reboot
Mercurial
Sudo apt-get install -y mercurial
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
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
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++
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
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
Thank you :D