楼主: Lisrelchen
1667 6

Caffea:Deep Learning Framework with Expression, Speed, and Modularity [推广有奖]

  • 0关注
  • 62粉丝

VIP

已卖:4194份资源

院士

67%

还不是VIP/贵宾

-

TA的文库  其他...

Bayesian NewOccidental

Spatial Data Analysis

东西方数据挖掘

威望
0
论坛币
50288 个
通用积分
83.6306
学术水平
253 点
热心指数
300 点
信用等级
208 点
经验
41518 点
帖子
3256
精华
14
在线时间
766 小时
注册时间
2006-5-4
最后登录
2022-11-6

楼主
Lisrelchen 发表于 2016-7-1 11:02:25 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
Caffe

本帖隐藏的内容

caffe-master.zip (8.37 MB)


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 community contributors.

Check out the project site for all the details like

and step-by-step examples.

Please join the caffe-users group or gitter chat to ask questions and talk about methods and models. Framework development discussions and thorough bug reports are collected on Issues.

Happy brewing!

License and Citation

Caffe is released under the BSD 2-Clause license. The BVLC reference models are released for unrestricted use.

Please cite Caffe in your publications if it helps your research:

@article{jia2014caffe,  Author = {Jia, Yangqing and Shelhamer, Evan and Donahue, Jeff and Karayev, Sergey and Long, Jonathan and Girshick, Ross and Guadarrama, Sergio and Darrell, Trevor},  Journal = {arXiv preprint arXiv:1408.5093},  Title = {Caffe: Convolutional Architecture for Fast Feature Embedding},  Year = {2014}}
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:modularity Expression Framework Learning earning expression framework developed reference learning

本帖被以下文库推荐

沙发
Lisrelchen 发表于 2016-7-1 11:04:35
  1. Caffe

  2. Caffe is a library famous for its speed. The official project page is http://caffe.berkeleyvision.org/ and the GitHub page is https://github.com/BVLC/caffe. Similar to TensorFlow, Caffe has been developed mainly with C++, but it provides a Python and MATLAB API. In addition, what is unique to Caffe is that you don't need any programming experience, you just write the configuration or protocol files, that is .prototxt files, to perform experiments and research with deep learning. Here, we focus on the protocol-based approach.

  3. Caffe is a very powerful library that enables quick model building, training, and testing; however, it's a bit difficult to install the library to get a lot of benefits from it. As you can see from the installation guide at http://caffe.berkeleyvision.org/installation.html, you need to install the following in advance:

  4. CUDA
  5. BLAS (ATLAS, MKL, or OpenBLAS)
  6. OpenCV
  7. Boost
  8. Others: snappy, leveldb, gflags, glog, szip, lmdb, protobuf, and hdf5
  9. Then, clone the repository from the GitHub page and create the Makefile.config file from Makefile.config.example. You may need Anaconda, a Python distribution, beforehand to run the make command. You can download this from https://www.continuum.io/downloads. After you run the make, make test, and make runtest commands (you may want to run the commands with a -jN option such as make -j4 or make -j8 to speed up the process) and pass the test, you'll see the power of Caffe. So, let's look at an example. Go to $CAFFE_ROOT, the path where you cloned the repository, and type the following commands:

  10. $ ./data/mnist/get_mnist.sh
  11. $ ./examples/mnist/train_lenet.sh
  12. That's all you need to solve the standard MNIST classification problem with CNN. So, what happened here? When you have a look at train_lenet.sh, you will see the following:

  13. #!/usr/bin/env sh

  14. ./build/tools/caffe train --solver=examples/mnist/lenet_solver.prototxt
  15. It simply runs the caffe command with the protocol file lenet_solver.prototxt. This file configures the hyper parameters of the model such as the learning rate and the momentum. The file also references the network configuration file, in this case, lenet_train_test.prototxt. You can define each layer with a JSON-like description:

  16. layer {
  17.   name: "conv1"
  18.   type: "Convolution"
  19.   bottom: "data"
  20.   top: "conv1"
  21.   param {
  22.     lr_mult: 1
  23.   }
  24.   param {
  25.     lr_mult: 2
  26.   }
  27.   convolution_param {
  28.     num_output: 20
  29.     kernel_size: 5
  30.     stride: 1
  31.     weight_filler {
  32.       type: "xavier"
  33.     }
  34.     bias_filler {
  35.       type: "constant"
  36.     }
  37.   }
  38. }
  39. So, basically, the protocol file is divided into two parts:

  40. Net: This defines the detailed structure of the model and gives a description of each layer, hence whole neural networks
  41. Solver: This defines the optimization settings such as the use of a CPU/GPU, the number of iterations, and the hyper parameters of the model such as the learning rate
  42. Caffe can be a great tool when you need to apply deep learning to a large dataset with principal approaches.
复制代码

藤椅
jinyizhe282 发表于 2016-7-1 21:19:27
ahahahahhaha

板凳
jinyizhe282 发表于 2016-7-1 21:19:27
ahahahahhaha

报纸
jk618 发表于 2016-7-20 17:31:46
哈哈kkwkwkwk

地板
eeabcde 发表于 2016-7-28 14:27:05
感谢分享

7
ecleetw 发表于 2016-7-30 11:35:02
感谢分享~

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-1 22:25