深度残差网络:ResNet
ResNet:
一、介绍
caffe-fast-rcnn(Caffe、FSRCNN、FastRCNN)
name: "ResNet_50_1by2"
layer {name: "data"type: "Input"top: "data"input_param { shape: { dim: 1 dim: 3 dim: 224 dim: 224 } } // 第一个维度是图片数,第二个是通道数,后面的是图片的长宽
}
layer {name: "conv_1"type: "Convolution"bottom: "data"top: "conv_1"param {lr_mult: 1decay_mult: 1}param {lr_mult: 2decay_mult: 0}convolution_param {num_output: 64pad: 3kernel_size: 7stride: 2weight_filler {type: "xavier"}bias_filler {type: "constant"value: 0}}
}
shape {
dim: 1 #num,可自行定义
dim: 3 #通道数,表示RGB三个通道
dim: 32 #图像的长和宽,通过 _train_test.prototxt文件中数据输入层的crop_size获取
dim: 32}
二、训练
http://www.cnblogs.com/ml-cv/p/5719531.html 深度残差网(deep residual networks)的训练过程
1、下载基于python的训练代码:
https://github.com/dnlcrl/deep-residual-networks-pyfunt
2、pyfunt需要安装:
@ubuntu:~$ sudo pip install git+git://github.com/dnlcrl/PyFunt.git
Downloading/unpacking git+git://github.com/dnlcrl/PyFunt.gitCloning git://github.com/dnlcrl/PyFunt.git to /tmp/pip-MS88tP-buildcustomize UnixCCompilerwarning: no files found matching 'setupegg.py'warning: no files found matching 'bscript'warning: no files found matching 'bento.info'warning: no files found matching '*' under directory 'doc'warning: no files found matching 'tox.ini'warning: no previously-included files matching '*_subr_*.f' found under directory 'pyfunt/linalg/src/id_dist/src'no previously-included directories found matching 'doc/build'no previously-included directories found matching 'doc/source/generated'no previously-included directories found matching '*/__pycache__'warning: no previously-included files matching '*~' found anywhere in distributionwarning: no previously-included files matching '*.bak' found anywhere in distributionwarning: no previously-included files matching '*.swp' found anywhere in distributionwarning: no previously-included files matching '*.pyo' found anywhere in distribution
Successfully installed numpy tqdm cython torchfile pyfunt
Cleaning up...
3、
@ubuntu:~/deep-residual-networks-pyfunt$ git clone https://github.com/dnlcrl//PyDatSet
Cloning into 'PyDatSet'...
remote: Counting objects: 185, done.
remote: Total 185 (delta 0), reused 0 (delta 0), pack-reused 185
Receiving objects: 100% (185/185), 29.90 KiB | 11.00 KiB/s, done.
Resolving deltas: 100% (111/111), done.
Checking connectivity... done.
@ubuntu:~/deep-residual-networks-pyfunt/PyDatSet$ sudo python setup.py install
[sudo] password for wei:
/usr/lib/python2.7/distutils/dist.py:267: UserWarning: Unknown distribution option: 'install_requires'warnings.warn(msg)
running install
running build
running build_py
running install_lib
creating /usr/local/lib/python2.7/dist-packages/pydatset
copying build/lib.linux-x86_64-2.7/pydatset/gtsrb.py -> /usr/local/lib/python2.7/dist-packages/pydatset
copying build/lib.linux-x86_64-2.7/pydatset/__init__.py -> /usr/local/lib/python2.7/dist-packages/pydatset
copying build/lib.linux-x86_64-2.7/pydatset/sfddd.py -> /usr/local/lib/python2.7/dist-packages/pydatset
copying build/lib.linux-x86_64-2.7/pydatset/tiny_imagenet.py -> /usr/local/lib/python2.7/dist-packages/pydatset
copying build/lib.linux-x86_64-2.7/pydatset/cifar10.py -> /usr/local/lib/python2.7/dist-packages/pydatset
copying build/lib.linux-x86_64-2.7/pydatset/mnist.py -> /usr/local/lib/python2.7/dist-packages/pydatset
copying build/lib.linux-x86_64-2.7/pydatset/data_augmentation.py -> /usr/local/lib/python2.7/dist-packages/pydatset
byte-compiling /usr/local/lib/python2.7/dist-packages/pydatset/gtsrb.py to gtsrb.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pydatset/__init__.py to __init__.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pydatset/sfddd.py to sfddd.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pydatset/tiny_imagenet.py to tiny_imagenet.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pydatset/cifar10.py to cifar10.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pydatset/mnist.py to mnist.pyc
byte-compiling /usr/local/lib/python2.7/dist-packages/pydatset/data_augmentation.py to data_augmentation.pyc
running install_egg_info
Writing /usr/local/lib/python2.7/dist-packages/pydatset-0.1.egg-info
wei@ubuntu:~/deep-residual-networks-pyfunt/PyDatSet$
https://www.cs.toronto.edu/%7Ekriz/cifar.html The CIFAR-10 dataset
Download
If you're going to use this dataset, please cite the tech report at the bottom of this page.
Version Size md5sum
CIFAR-10 python version 163 MB c58f30108f718f92721af3b95e74349a
CIFAR-10 Matlab version 175 MB 70270af85842c9e89bb428ec9976c926
CIFAR-10 binary version (suitable for C programs) 162 MB c32a1d4ab5d03f1284b67883e8d87530
参考资料:
http://blog.csdn.net/forest_world/article/details/53035009 LeNet、AlexNet、GoogLeNet、VGG、ResNet
http://www.cnblogs.com/daihengchen/p/5761304.html 使用caffe测试自己的图片
http://blog.csdn.net/lg1259156776/article/details/52550865 神经网络与深度学习 Caffe部署中的几个train-test-solver-prototxt-deploy等说明<三>
http://www.kaiminghe.com/ Kaiming He
http://blog.csdn.net/sunbaigui/article/details/50906002 [caffe]深度学习之MSRA图像分类模型Deep Residual Network(深度残差网络)解读
http://blog.csdn.net/yichenmoyan/article/details/51885433 使用Keras搭建深度残差网络
http://blog.csdn.net/heyongluoyao8/article/details/52478715 梯度下降优化算法综述
http://mp.weixin.qq.com/s?__biz=MzIzNDQyNjI5Mg==&mid=100000125&idx=1&sn=72ba0e3e301281c13349f1a1821bad0d&chksm=68f7dba65f8052b0762594489c785ed67f19e111cf2c44dc4522e941989e85d8ee2a03203d26&mpshare=1&scene=23&srcid=1202GeZsjHGcHixoK41RU2mS#rd 深度学习所有文章
深度残差网络:ResNet相关推荐
- dlibdotnet 人脸相似度源代码_使用dlib中的深度残差网络(ResNet)实现实时人脸识别 - supersayajin - 博客园...
opencv中提供的基于haar特征级联进行人脸检测的方法效果非常不好,本文使用dlib中提供的人脸检测方法(使用HOG特征或卷积神经网方法),并使用提供的深度残差网络(ResNet)实现实时人脸识别 ...
- 何恺明编年史之深度残差网络ResNet
文章目录 前言 一.提出ResNet原因 二.深度残差模块 1.数学理论基础 2.深度网络结构 三.Pytorch代码实现 四.总结 前言 图像分类是计算机视觉任务的基石,在目标监测.图像分割等任务中 ...
- TF2.0深度学习实战(七):手撕深度残差网络ResNet
写在前面:大家好!我是[AI 菌],一枚爱弹吉他的程序员.我热爱AI.热爱分享.热爱开源! 这博客是我对学习的一点总结与记录.如果您也对 深度学习.机器视觉.算法.Python.C++ 感兴趣,可以关 ...
- 【深度学习之ResNet】——深度残差网络—ResNet总结
目录 论文名称:Deep Residual Learning for Image Recognition 摘要: 1.引言 2.为什么会提出ResNet残差网络呢? 3.深度残差网络结构学习(Deep ...
- 深度残差网络ResNet解析
ResNet在2015年被提出,在ImageNet比赛classification任务上获得第一名,因为它"简单与实用"并存,之后很多方法都建立在ResNet50或者ResNet1 ...
- 深度残差网络RESNET
一.残差神经网络--ResNet的综述 深度学习网络的深度对最后的分类和识别的效果有着很大的影响,所以正常想法就是能把网络设计的越深越好, 但是事实上却不是这样,常规的网络的堆叠(plain netw ...
- 【深度学习】深度残差网络ResNet
文章目录 1 残差网络ResNet 1.1要解决的问题 1.2 残差网络结构 1.3 捷径连接 1.4 总结 1 残差网络ResNet 1.1要解决的问题 在传统CNN架构中,如果我们简单堆叠CN ...
- 通过深度残差网络ResNet进行图像分类(pytorch网络多网络集成配置)
通过深度残差网络进行图像分类(pytorch网络多网络集成配置) 简介 本项目通过配置文件修改,实现pytorch的ResNet18, ResNet34, ResNet50, ResNet101, R ...
- 大话深度残差网络(DRN)ResNet网络原理
-- 原文发布于本人的微信公众号"大数据与人工智能Lab"(BigdataAILab),欢迎关注. 一说起"深度学习",自然就联想到它非常显著的特点" ...
- CNN经典模型:深度残差网络(DRN)ResNet
一说起"深度学习",自然就联想到它非常显著的特点"深.深.深"(重要的事说三遍),通过很深层次的网络实现准确率非常高的图像识别.语音识别等能力.因此,我们自然很 ...
最新文章
- android6.0麦克风权限,android 6.0权限检测以及6.0以下,麦克风、相机权限判断
- js前端实现模糊查询
- 【技术综述】有三AI不得不看的技术综述
- es5直接引入html文件,ES6+转ES5(webpack+babel、指定多个js文件、自动注入)
- 求1+2+…+n变态问题的两个很棒的解法
- 万兆网文件服务器,万兆以太网网卡网吧服务器中的应用
- 重装服务器,解决怪问题
- android+字体稍微加粗,的Android设置的Roboto字体,加粗,斜体,普通,...(有点像自定义字体家族)...
- Windows10安装IIS服务器
- IEC61850简要介绍
- 测试开发工程师必备技术栈(附详细技术点)
- Chrome免安装版制作
- Moebius中间件
- 京东朱健:聊聊京东广告系统的数据库选型
- 我的求带之路(已成功
- 初学Linux服务器管理
- PC USB Warning
- 斗鱼直播招聘测试总监
- 从原生到黑科技:闲鱼 Flutter 图片优化经历了什么?
- React Native 炫酷的动画库 实现任何AE动画 lottie-react-native