caffe学习系列(6):其他层介绍
2024-08-31 21:21:58
主要包括softmax-loss层(与softmax有区别),全连接层(Inner Prouduct),accuracy层,reshape层,
Dropout层。
softmax:
layers {
bottom: "cls3_fc"
top: "prob"//概率似然值
name: "prob"
type: “Softmax"
}
accuracy
layer {
name: "accuracy"
type: "Accuracy"
bottom: "ip2"
bottom: "label"
top: "accuracy"
include {
phase: TEST //test阶段才有
}
}
reshape
layer { //改变输入的维度
name: "reshape"
type: "Reshape"
bottom: "input"
top: "output"
reshape_param {
shape {//指定blob数据各维的值n*c*w*h
dim: # copy the dimension from below维度不变
dim: 2 #将原来的维度变成2
dim:
dim: - # infer it from the other dimensions根据其他三维来计算当前维度
}
}
}
Dropout层
layer {
name: "drop7"
type: "Dropout"
bottom: "fc7-conv"
top: "fc7-conv"
dropout_param {
dropout_ratio: 0.5
}
}
参考:http://www.cnblogs.com/denny402/p/5072746.html
最新文章
- 人生苦短,我用python——当我在玩python的时候我玩些什么
- PHP流程控制之循环结构
- Caffe学习系列(21):caffe图形化操作工具digits的安装与运行
- ab apache Benchmarking中链接的写法 记得加上/
- 设置Tomcat默认界面
- [Django 1.5] Windows + Apache + wsgi配置
- Linux系统安全需要注意的一些问题
- C#版 - Leetcode49 - 字母异位词分组 - 题解
- Python中Lambda表达式使用
- Android Studio 快捷键总结(OS X)
- Dockerfile文件制作自己的镜像
- 更换tomcat运行日志目录
- oracle之简单总结
- 编译错误 error C2451: “std::_Unforced”类型的条件表达式是非法的
- [luogu 3957]跳房子
- Linux 系统的用户和组详解_【all】
- Educational Codeforces Round 46 (Div 2) (A~G)
- 高并发系列之——缓存中间件Redis
- mybatis大框架
- JavaScript“并非”一切皆对象
热门文章
- Ubuntu——";xxx is not in the sudoers file.This incident will be reported"; 错误解决方法
- python线程锁
- Cloudservice程序设置Idle timeout
- JS转码
- jquery满屏滚动代码
- Sphinx 2.2.6 window下安装全过程 未完 持续标记~~~~
- Java并发编程核心方法与框架-TheadPoolExecutor的使用
- ASP.NET MVC 4+ T.JPager使用
- github常见操作和常见错误!
- zookeeper原理(转)