On Tutorial with Caffe--a Hands DIY DL for Vision
原文鏈接:http://blog.sciencenet.cn/blog-1583812-844177.html
?????? Caffe作為DL的一個(gè)學(xué)習(xí)框架,Caffe is a deep learning framework made with expression, speed, and modularity in mind.It is developed by the Berkeley Vision and Learning Center (BVLC) and by community contributors.Yangqing Jia created the project during his PhD at UC Berkeley.Caffe is released under theBSD 2-Clause license.
? ? ?? 為什么是深度學(xué)習(xí)?............
現(xiàn)有的DL框架:
Caffe的不同之處:使用純C++作為底層庫(kù),開(kāi)放Python、Matlab接口,基于CUDA
Caffe的網(wǎng)絡(luò)結(jié)構(gòu):一個(gè)塊作為數(shù)據(jù)結(jié)構(gòu)
Caffe單層網(wǎng)絡(luò)定義(數(shù)據(jù)結(jié)構(gòu)):
Caffe的基本Blob結(jié)構(gòu):
如何訓(xùn)練Caffe網(wǎng)絡(luò):參數(shù)配置在solver.prototxt中
生成Caffe的數(shù)據(jù)結(jié)構(gòu):
Logistic Regression (in Python):
http://nbviewer.ipython.org/github/BVLC/caffe/blob/dev/examples/hdf5_classification.ipynb Learn LeNet on MNIST:
http://caffe.berkeleyvision.org/gathered/examples/mnist.html
參數(shù)調(diào)整 : --將一個(gè)訓(xùn)練好的模型?參數(shù)調(diào)整?到一個(gè)新任務(wù)中......
方法:使用ImageNet訓(xùn)練的模型到任務(wù),只需在定義里有一小點(diǎn)改變......
? #設(shè)定好模型路徑和想要分類(lèi)的圖片
方法一:直接初始化....
方法二:New一下就可以了....
Net = new Caffe::Net("style_solver.prototxt") Net.CopyTrainedNetFrom(pretrained_model); solver.Solve(net);
Fine-tuning CaffeNet for Style Recognition on “Flickr Style” Data http://tutorial.caffe.berkeleyvision.org/gathered/examples/finetune_flickr_style.html
SoftMax?函數(shù)損失層:
SigMoid?交叉熵?損失函數(shù):
歐式損失:
多重?損失:
Related projects: R-CNN: Regions with CNN Ross Girshick et al.Rich feature hierarchies for accurate object detection and semanticsegmentation. CVPR14. http://nbviewer.ipython.org/github/BVLC/caffe/blob/dev/examples/detection.ipynb
Full scripts: https://github.com/rbgirshick/rcnn
Visual Style Recognition: Karayev et al.Recognizing Image Style. BMVC14. Caffe fine-tuning example Demo:http://demo.vislab.berkeleyvision.org/
Latest Roast: Model Zoo: https://github.com/BVLC/caffe/wiki/Model-Zoo - BVLC reference models - VGG Devil + ILSVRC14 modelsin the zoo - Network-in-Network / CCCP modelin the zoo
Caffe + cuDNN
Parallel / distributed training across CPUs, GPUs, and cluster nodes https://github.com/BVLC/caffe/pull/1148
參考:DIY Deep Learning for Vision with Caffe slides
https://docs.google.com/presentation/d/1UeKXVgRvvxg9OUdh_UiC5G71UMscNPlvArsWER41PsU/preview?sle=true#slide=id.p
總結(jié)
以上是生活随笔為你收集整理的On Tutorial with Caffe--a Hands DIY DL for Vision的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: lol网名大全骚气,lol逗比又嘲讽的名
- 下一篇: 漂泊的人经典句子80句