共 12 篇文章 |
|
Caffe学习系列(18): 绘制网络模型。python/draw_net.py, 这个文件,就是用来绘制网络模型的。第一个参数:网络模型的prototxt文件。# sudo python python/draw_net.py examples/mnist/lenet_train_test.prototxt netImage/lenet.png --rankdir=BT.# sudo python python/draw_net.py examples/cifar10/cifar10_full_train_test.prototxt netImag... 阅43 转0 评0 公众公开 17-03-13 14:24 |
Caffe学习系列(6):Blob,Layer and Net以及对应配置文件的编写。name: "LogReg"layer { name: "mnist" type: "Data" top: "data" top: "label" data_param { source: "input_leveldb" batch_size: 64 }}layer { name: "ip" type: "InnerProduct" bottom: &qu... 阅45 转0 评0 公众公开 17-03-03 15:47 |
# params显示:layer名,w,bfor layer_name, param in net.params.items(): print layer_name + ''\t'' + str(param[0].data.shape), str(param[1].data.shape)# blob显示:layer名,输出的blob维度for layer_name, blob in net.blobs.items(): print layer_name + ''\t'' + str(blob.data.shape)自定义函数:... 阅2119 转3 评0 公众公开 17-03-02 10:50 |
阅42 转1 评0 公众公开 17-03-01 21:30 |
INCLUDE_DIRS := $(PYTHON_INCLUDE) /usr/local/includeLIBRARY_DIRS := $(PYTHON_LIB) /usr/local/lib /usr/lib# If Homebrew is installed at a non standard location (for example your home directory) and you use it for general dependencies# INCLUDE_DIRS += $(shell brew --prefix)/include# LIBRARY_DIRS += $(shell brew --prefix... 阅131 转0 评0 公众公开 17-03-01 21:30 |
运行成功后,会在 examples/myfile下面生成两个文件夹img_train_lmdb和img_test_lmdb,分别用于保存图片转换后的lmdb文件。# sudo build/tools/compute_image_mean examples/myfile/img_train_lmdb examples/myfile/mean.binaryproto.# sudo cp models/bvlc_reference_caffenet/solver.prototxt examples/myfile/# sudo cp models/bvlc_referen... 阅212 转0 评0 公众公开 17-03-01 20:49 |
Caffe学习系列(11):图像数据转换成db(leveldb/lmdb)文件。编译之后,生成对应的可执行文件放在 buile/tools/ 下面,这个文件的作用就是用于将图片文件转换成caffe框架中能直接使用的db文件。/usr/bin/en shDATA=examples/imagesrm -rf $DATA/img_train_lmdbbuild/tools/convert_imageset --shuffle --resize_height=256 --resize_width=256 /... 阅183 转1 评0 公众公开 17-03-01 18:56 |
# ./build/tools/caffe train -solver examples/mnist/lenet_solver.prototxt -gpu 2.# ./build/tools/caffe train -solver examples/mnist/lenet_solver.prototxt -snapshot examples/mnist/lenet_iter_5000.solverstate.# ./build/tools/caffe test -model examples/mnist/lenet_train_test.prototxt -weights examples/mnist/lenet_iter_100... 阅73 转0 评0 公众公开 17-02-21 20:21 |
caffe-windows运行cifar10注意事项(Cpu模式)#sh data/cifar10/get_cifar10.sh.修改create_cifar10.sh中tools中文件目录为。#sh examples/cifar10/create_cifar10.sh转换成功后,会在 examples/cifar10/文件夹下生成两个文件夹,cifar10_train_lmdb和cifar10_test_lmdb, 里面的文件就是我们需要的文件。#sh examples/cifar10/train_quick.sh. 阅818 转1 评0 公众公开 17-02-06 16:05 |
caffe+cuda6.5+cudnn7.0+opencv3.0搭建经验记录前言。1、从github中下载官方的caffe[html] view plain copy sudo git clone https://github.com/BVLC/caffe.git.安装atlas:[html] view plain copy sudo apt-get install libatlas-base-dev 4、切换到Caffe-master的文件夹,生成Makefile.config配置文件,执行:[html] view plain copy cp Make... 阅819 转3 评0 公众公开 17-02-04 19:00 |