1.先下載一個ultraios,無需激活,然後製作u盤啓動工具,具體教程請看百度經驗教程
http://jingyan.baidu.com/article/d169e186800f02436711d87b.html
2.製作好u盤啓動工具之後。然後就是安裝ubuntu14.04,在這之前要先下載好ubuntu14.04,然後找到first boot,然後啓動u盤就可以安裝系統了
安裝分區問題見博 客:http://blog.sina.com.cn/s/blog_5f0a505101017ruf.html
首先剛裝的系統需要 sudo apt-get update
sudo apt-get install libprotobuf-dev libleveldb-dev libsnappy-dev libopencv-dev libboost-all-dev libhdf5-serial-dev
因爲我的系統是14.04,所以按照官網上的要求繼續進行第二步操作
sudo apt-get install libgflags-dev libgoogle-glog-dev liblmdb-dev protobuf-compiler
安裝開發所需要的一些基本包:sudo apt-get install build-essential
4.安裝OpenCV:
Github上的腳本:https://github.com/jayrambhia/Install-OpenCV
下載該腳本,進入Ubuntu/2.4 目錄, 給所有shell腳本加上可執行權限
chmod +x *.sh
然後安裝最新版本:$ sudo ./opencv2_4_9.sh
5.matlab安裝
參考blog.csdn.net/zhouchao_fight/article/details/45618581
6.安裝caffe
先下載caffe,https://github.com/BVLC/caffe
解壓複製Makefile.config.example爲Makefile.config,然後進入Caffe的解壓文件夾,然後執行:
cp Makefile.config.example Makefile.config
$ make all
$ make test
$ make runtest (由於沒有裝GPU,用cpu跑也不需要裝cuda,所有這邊編譯不能通過!後來發現 只要在Makefile.config裏取消 CPU_ONLY := 1前面的註釋,就可以通過編譯!)
7.測試caffe
到http://yann.lecun.com/exdb/mnist/
下載4個數據包。然後放到caffe安裝路徑下的data中的mnist裏面,然後進入該路徑,解壓四個文件
gunzip train-images-idx3-ubyte.gz
gunzip train-labels-idx1-ubyte.gz
gunzip t10k-images-idx3-ubyte.gz
gunzip t10k-labels-idx1-ubyte.gz
然後重建LDB文件,就是處理二進制數據集爲Caffe識別的數據集,以後所有的數據,包括jpe文件都要處理成這個格式。
$ sudo examples/mnist /create_mnist.sh
生成mnist-train-leveldb/ 和 mnist-test-leveldb/文件夾,這裏包含了LDB格式的數據集,
訓練mnist,$ sudo examples/mnist/train_lenet.sh
最後基本的框架已經建好了!
特別鳴謝zhouchao_fight給與我的幫助與指導,再次感謝!
blog.csdn.net/zhouchao_fight