VGG-16 prototxt
VGG-16 prototxt
CNN(31)
版权声明:可以参考 亦可转载 请注明出处
solver.prototxt:
- net: "models/vgg16/train_val.prototxt"
- test_iter: 1000
- test_interval: 2500
- base_lr: 0.001
- lr_policy: "step"
- gamma: 0.1
- stepsize: 50000
- display: 20
- max_iter: 200000
- momentum: 0.9
- weight_decay: 0.0005
- snapshot: 10000
- snapshot_prefix: "models/vgg16/caffe_vgg16_train"
- solver_mode: GPU
net: "models/vgg16/train_val.prototxt"
test_iter: 1000
test_interval: 2500
base_lr: 0.001
lr_policy: "step"
gamma: 0.1
stepsize: 50000
display: 20
max_iter: 200000
momentum: 0.9
weight_decay: 0.0005
snapshot: 10000
snapshot_prefix: "models/vgg16/caffe_vgg16_train"
solver_mode: GPU
train_val.prototxt:
- name: "VGG16"
- layer {
- name: "data"
- type: "Data"
- top: "data"
- top: "label"
- include {
- phase: TRAIN
- }
- # transform_param {
- # mirror: true
- # crop_size: 224
- # mean_file: "data/ilsvrc12_shrt_256/imagenet_mean.binaryproto"
- # }
- transform_param {
- mirror: true
- crop_size: 224
- mean_value: 103.939
- mean_value: 116.779
- mean_value: 123.68
- }
- data_param {
- source: "data/ilsvrc12_shrt_256/ilsvrc12_train_leveldb"
- batch_size: 64
- backend: LEVELDB
- }
- }
- layer {
- name: "data"
- type: "Data"
- top: "data"
- top: "label"
- include {
- phase: TEST
- }
- # transform_param {
- # mirror: false
- # crop_size: 224
- # mean_file: "data/ilsvrc12_shrt_256/imagenet_mean.binaryproto"
- # }
- transform_param {
- mirror: false
- crop_size: 224
- mean_value: 103.939
- mean_value: 116.779
- mean_value: 123.68
- }
- data_param {
- source: "data/ilsvrc12_shrt_256/ilsvrc12_val_leveldb"
- batch_size: 50
- backend: LEVELDB
- }
- }
- layer {
- bottom: "data"
- top: "conv1_1"
- name: "conv1_1"
- type: "Convolution"
- param {
- lr_mult: 1
- decay_mult: 1
- }
- param {
- lr_mult: 2
- decay_mult: 0
- }
- convolution_param {
- num_output: 64
- pad: 1
- kernel_size: 3
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- bottom: "conv1_1"
- top: "conv1_1"
- name: "relu1_1"
- type: "ReLU"
- }
- layer {
- bottom: "conv1_1"
- top: "conv1_2"
- name: "conv1_2"
- type: "Convolution"
- param {
- lr_mult: 1
- decay_mult: 1
- }
- param {
- lr_mult: 2
- decay_mult: 0
- }
- convolution_param {
- num_output: 64
- pad: 1
- kernel_size: 3
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- bottom: "conv1_2"
- top: "conv1_2"
- name: "relu1_2"
- type: "ReLU"
- }
- layer {
- bottom: "conv1_2"
- top: "pool1"
- name: "pool1"
- type: "Pooling"
- pooling_param {
- pool: MAX
- kernel_size: 2
- stride: 2
- }
- }
- layer {
- bottom: "pool1"
- top: "conv2_1"
- name: "conv2_1"
- type: "Convolution"
- param {
- lr_mult: 1
- decay_mult: 1
- }
- param {
- lr_mult: 2
- decay_mult: 0
- }
- convolution_param {
- num_output: 128
- pad: 1
- kernel_size: 3
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- bottom: "conv2_1"
- top: "conv2_1"
- name: "relu2_1"
- type: "ReLU"
- }
- layer {
- bottom: "conv2_1"
- top: "conv2_2"
- name: "conv2_2"
- type: "Convolution"
- param {
- lr_mult: 1
- decay_mult: 1
- }
- param {
- lr_mult: 2
- decay_mult: 0
- }
- convolution_param {
- num_output: 128
- pad: 1
- kernel_size: 3
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- bottom: "conv2_2"
- top: "conv2_2"
- name: "relu2_2"
- type: "ReLU"
- }
- layer {
- bottom: "conv2_2"
- top: "pool2"
- name: "pool2"
- type: "Pooling"
- pooling_param {
- pool: MAX
- kernel_size: 2
- stride: 2
- }
- }
- layer {
- bottom: "pool2"
- top: "conv3_1"
- name: "conv3_1"
- type: "Convolution"
- param {
- lr_mult: 1
- decay_mult: 1
- }
- param {
- lr_mult: 2
- decay_mult: 0
- }
- convolution_param {
- num_output: 256
- pad: 1
- kernel_size: 3
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- bottom: "conv3_1"
- top: "conv3_1"
- name: "relu3_1"
- type: "ReLU"
- }
- layer {
- bottom: "conv3_1"
- top: "conv3_2"
- name: "conv3_2"
- type: "Convolution"
- param {
- lr_mult: 1
- decay_mult: 1
- }
- param {
- lr_mult: 2
- decay_mult: 0
- }
- convolution_param {
- num_output: 256
- pad: 1
- kernel_size: 3
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- bottom: "conv3_2"
- top: "conv3_2"
- name: "relu3_2"
- type: "ReLU"
- }
- layer {
- bottom: "conv3_2"
- top: "conv3_3"
- name: "conv3_3"
- type: "Convolution"
- param {
- lr_mult: 1
- decay_mult: 1
- }
- param {
- lr_mult: 2
- decay_mult: 0
- }
- convolution_param {
- num_output: 256
- pad: 1
- kernel_size: 3
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- bottom: "conv3_3"
- top: "conv3_3"
- name: "relu3_3"
- type: "ReLU"
- }
- layer {
- bottom: "conv3_3"
- top: "pool3"
- name: "pool3"
- type: "Pooling"
- pooling_param {
- pool: MAX
- kernel_size: 2
- stride: 2
- }
- }
- layer {
- bottom: "pool3"
- top: "conv4_1"
- name: "conv4_1"
- type: "Convolution"
- param {
- lr_mult: 1
- decay_mult: 1
- }
- param {
- lr_mult: 2
- decay_mult: 0
- }
- convolution_param {
- num_output: 512
- pad: 1
- kernel_size: 3
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- bottom: "conv4_1"
- top: "conv4_1"
- name: "relu4_1"
- type: "ReLU"
- }
- layer {
- bottom: "conv4_1"
- top: "conv4_2"
- name: "conv4_2"
- type: "Convolution"
- param {
- lr_mult: 1
- decay_mult: 1
- }
- param {
- lr_mult: 2
- decay_mult: 0
- }
- convolution_param {
- num_output: 512
- pad: 1
- kernel_size: 3
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- bottom: "conv4_2"
- top: "conv4_2"
- name: "relu4_2"
- type: "ReLU"
- }
- layer {
- bottom: "conv4_2"
- top: "conv4_3"
- name: "conv4_3"
- type: "Convolution"
- param {
- lr_mult: 1
- decay_mult: 1
- }
- param {
- lr_mult: 2
- decay_mult: 0
- }
- convolution_param {
- num_output: 512
- pad: 1
- kernel_size: 3
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- bottom: "conv4_3"
- top: "conv4_3"
- name: "relu4_3"
- type: "ReLU"
- }
- layer {
- bottom: "conv4_3"
- top: "pool4"
- name: "pool4"
- type: "Pooling"
- pooling_param {
- pool: MAX
- kernel_size: 2
- stride: 2
- }
- }
- layer {
- bottom: "pool4"
- top: "conv5_1"
- name: "conv5_1"
- type: "Convolution"
- param {
- lr_mult: 1
- decay_mult: 1
- }
- param {
- lr_mult: 2
- decay_mult: 0
- }
- convolution_param {
- num_output: 512
- pad: 1
- kernel_size: 3
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- bottom: "conv5_1"
- top: "conv5_1"
- name: "relu5_1"
- type: "ReLU"
- }
- layer {
- bottom: "conv5_1"
- top: "conv5_2"
- name: "conv5_2"
- type: "Convolution"
- param {
- lr_mult: 1
- decay_mult: 1
- }
- param {
- lr_mult: 2
- decay_mult: 0
- }
- convolution_param {
- num_output: 512
- pad: 1
- kernel_size: 3
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- bottom: "conv5_2"
- top: "conv5_2"
- name: "relu5_2"
- type: "ReLU"
- }
- layer {
- bottom: "conv5_2"
- top: "conv5_3"
- name: "conv5_3"
- type: "Convolution"
- param {
- lr_mult: 1
- decay_mult: 1
- }
- param {
- lr_mult: 2
- decay_mult: 0
- }
- convolution_param {
- num_output: 512
- pad: 1
- kernel_size: 3
- weight_filler {
- type: "gaussian"
- std: 0.01
- }
- bias_filler {
- type: "constant"
- value: 0
- }
- }
- }
- layer {
- bottom: "conv5_3"
- top: "conv5_3"
- name: "relu5_3"
- type: "ReLU"
- }
- layer {
- bottom: "conv5_3"
- top: "pool5"
- name: "pool5"
- type: "Pooling"
- pooling_param {
- pool: MAX
- kernel_size: 2
- stride: 2
- }
- }
- layer {
- bottom: "pool5"
- top: "fc6"
- name: "fc6"
- type: "InnerProduct"
- param {
- lr_mult: 1
- decay_mult: 1
- }
- param {
- lr_mult: 2
- decay_mult: 0
- }
- inner_product_param {
- num_output: 4096
- weight_filler {
- type: "gaussian"
- std: 0.005
- }
- bias_filler {
- type: "constant"
- value: 0.1
- }
- }
- }
- layer {
- bottom: "fc6"
- top: "fc6"
- name: "relu6"
- type: "ReLU"
- }
- layer {
- bottom: "fc6"
- top: "fc6"
- name: "drop6"
- type: "Dropout"
- dropout_param {
- dropout_ratio: 0.5
- }
- }
- layer {
- bottom: "fc6"
- top: "fc7"
- name: "fc7"
- type: "InnerProduct"
- param {
- lr_mult: 1
- decay_mult: 1
- }
- param {
- lr_mult: 2
- decay_mult: 0
- }
- inner_product_param {
- num_output: 4096
- weight_filler {
- type: "gaussian"
- std: 0.005
- }
- bias_filler {
- type: "constant"
- value: 0.1
- }
- }
- }
- layer {
- bottom: "fc7"
- top: "fc7"
- name: "relu7"
- type: "ReLU"
- }
- layer {
- bottom: "fc7"
- top: "fc7"
- name: "drop7"
- type: "Dropout"
- dropout_param {
- dropout_ratio: 0.5
- }
- }
- layer {
- bottom: "fc7"
- top: "fc8"
- name: "fc8"
- type: "InnerProduct"
- param {
- lr_mult: 1
- decay_mult: 1
- }
- param {
- lr_mult: 2
- decay_mult: 0
- }
- inner_product_param {
- num_output: 1000
- weight_filler {
- type: "gaussian"
- std: 0.005
- }
- bias_filler {
- type: "constant"
- value: 0.1
- }
- }
- }
- layer {
- name: "accuracy_at_1"
- type: "Accuracy"
- bottom: "fc8"
- bottom: "label"
- top: "accuracy_at_1"
- accuracy_param {
- top_k: 1
- }
- include {
- phase: TEST
- }
- }
- layer {
- name: "accuracy_at_5"
- type: "Accuracy"
- bottom: "fc8"
- bottom: "label"
- top: "accuracy_at_5"
- accuracy_param {
- top_k: 5
- }
- include {
- phase: TEST
- }
- }
- layer {
- bottom: "fc8"
- bottom: "label"
- top: "loss"
- name: "loss"
- type: "SoftmaxWithLoss"
- }
VGG-16 prototxt相关推荐
- pytorch笔记:VGG 16
理论部分见:机器学习笔记:VGG 16_UQI-LIUWJ的博客-CSDN博客 1 直接调用 import torch, torchvisionmodel = torchvision.models.v ...
- vgg 16模型的内存和参数量的计算
cs231n上关于VGG-16模型的内存和参数的计算过程如下. INPUT: [224x224x3] memory: 224*224*3=150K weights: 0 CONV3-64: [224x ...
- 使用VGG训练Imagenet
准备数据 具体官网地址,请点击这里 ImageNet官网 训练数据集:ILSVRC2012_img_train.tar 验证数据集:ILSVRC2012_img_val.tar 数据解压 sudo t ...
- tensorflow文档中vgg.py解读
文档地址: https://github.com/tensorflow/models/blob/master/research/slim/nets/vgg.py vgg 网络结构表: 注:ABCDE ...
- 22 款神经网络的设计和可视化工具
前言 深度学习领域,最常见的就是各种网络模型,那么在写论文或者文章,介绍网络模型的时候,最好的办法当然就是展示代码画图,今天介绍的 Github 项目,就是整理了 22 个设计和可视化网络结构的工具, ...
- caffe-fast-rcnn(Caffe、FSRCNN、FastRCNN)
作者:forest_world 转载请注明:http://blog.csdn.net/forest_world 一.文件架构 二.FSRCNN开发环境搭建: faster-rcnn: matlab版本 ...
- 22 款设计和可视化神经网络的工具
点击上方"算法猿的成长",关注公众号,选择加"星标"或"置顶" 总第 143 篇文章,本文大约 3000 字,阅读大约需要 10 分钟 前言 ...
- 深度神经网络可视化工具
TensorBoard:TensorFlow集成可视化工具 GitHub官方项目:https://github.com/tensorflow/tensorflow/tree/master/tensor ...
- TensorFlow Frontend前端
TensorFlow Frontend前端 TensorFlow前端有助于将TensorFlow模型导入TVM. Supported versions: • 1.12 and below Tested ...
- 优达学城《DeepLearning》项目2:犬种分类器
在这个notebook中,你将迈出第一步,来开发可以作为移动端或 Web应用程序一部分的算法.在这个项目的最后,你的程序将能够把用户提供的任何一个图像作为输入.如果可以从图像中检测到一只狗,它会输出对 ...
最新文章
- 2022-2028年中国工业节能行业深度调研及投资前景预测报告
- Cpp / shared_ptr
- NYOJ_269_VF
- python自动化测试脚本后端_基于 python 的接口自动化测试
- Scala _09样例类(case classes)隐式转换
- python笔记之 inputprintformat函数
- MC.9 与 LIS
- hokuyo_node代码分析
- C# 静态类初始化 结构体初始化
- 数据挖掘案例(1):泰坦尼克号-数据挖掘流程
- Qt 之 QPainter
- Selenium批量下载抖音无水印高清视频
- HttpClient RestTemplate
- 神经网络学习笔记1——BP神经网络原理到编程实现(matlab,python)
- 使用微信js-sdk上传语音并将语音下载到服务器
- 18行的python快递查询
- 敲一万小时的代码可以成为大牛吗?
- 【2022年华为杯数学建模E题赛后总结加思路详细介绍配代码----10月11号写的总结】
- 论作业成本法在中小酒店的应用中存在的问题及对策
- 做软件第三方测试报告需要准备哪些材料,靠谱的软件测试中心推荐
热门文章
- android原生组件,XUI: 一个简洁而优雅的Android原生UI框架,解放你的双手!
- java 内存_java节省内存的几条建议
- tf.argsort
- linux 可执行文件_linux中ELF二进制程序解析
- tcp转串口_浅谈串口转以太网技术
- 推荐系统笔记:基于模型的协同过滤
- 文巾解题 557. 反转字符串中的单词 III
- MATLAB实战系列(四)-导入txt文件技巧大全
- 阿里数据中台系列之Apsara Stack控制台初始化配置及资源管理(二)
- 强化学习(十二) Dueling DQN