Machine learning with raspberrypi
-
Upload
elmokhtar-benfraj -
Category
Technology
-
view
99 -
download
0
Transcript of Machine learning with raspberrypi
![Page 1: Machine learning with raspberrypi](https://reader036.fdocuments.net/reader036/viewer/2022062412/58d09dcb1a28abdd648b60d5/html5/thumbnails/1.jpg)
Machine Learning
![Page 2: Machine learning with raspberrypi](https://reader036.fdocuments.net/reader036/viewer/2022062412/58d09dcb1a28abdd648b60d5/html5/thumbnails/2.jpg)
![Page 3: Machine learning with raspberrypi](https://reader036.fdocuments.net/reader036/viewer/2022062412/58d09dcb1a28abdd648b60d5/html5/thumbnails/3.jpg)
Some Machine Learning Tools
![Page 4: Machine learning with raspberrypi](https://reader036.fdocuments.net/reader036/viewer/2022062412/58d09dcb1a28abdd648b60d5/html5/thumbnails/4.jpg)
Deep Belief Image Recognition
![Page 5: Machine learning with raspberrypi](https://reader036.fdocuments.net/reader036/viewer/2022062412/58d09dcb1a28abdd648b60d5/html5/thumbnails/5.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022062412/58d09dcb1a28abdd648b60d5/html5/thumbnails/6.jpg)
Mercurial
Sudo apt-get install -y mercurial
![Page 7: Machine learning with raspberrypi](https://reader036.fdocuments.net/reader036/viewer/2022062412/58d09dcb1a28abdd648b60d5/html5/thumbnails/7.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022062412/58d09dcb1a28abdd648b60d5/html5/thumbnails/8.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022062412/58d09dcb1a28abdd648b60d5/html5/thumbnails/9.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022062412/58d09dcb1a28abdd648b60d5/html5/thumbnails/10.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022062412/58d09dcb1a28abdd648b60d5/html5/thumbnails/11.jpg)
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](https://reader036.fdocuments.net/reader036/viewer/2022062412/58d09dcb1a28abdd648b60d5/html5/thumbnails/12.jpg)
Thank you :D
![Page 13: Machine learning with raspberrypi](https://reader036.fdocuments.net/reader036/viewer/2022062412/58d09dcb1a28abdd648b60d5/html5/thumbnails/13.jpg)