tensorflow系列:如何使用inception resnet v2网络
来源:互联网 发布:无锡浪潮大数据产业园 编辑:程序博客网 时间:2024/04/28 11:31
一、前言
最近在用inception v3和inception resnet v2这两个网络,这两个网络架构我想不用我多说了,谷歌出品。
通过将不同尺度的feature map进行融合,通过1xn卷积核nx1卷积来替代nxn卷积,从而有效地降低计算量,通过使用多个3x3卷积来代替5x5卷积和7x7卷积来降低计算量。另外在inception resnet v2中将resnet与inception 的网络结构来进行融合,从而进一步提升在 imagenet上的accuracy。
废话了这么多,既然要实际使用这两个网络我们当然是想使用谷歌公开的代码直接来进行finetune,这样不仅能够节省时间,还能够得到不错的效果,这里就需要使用最新的slim库中实现的inception resnet v2网络。
当然了,最新的tensorflow(1.2.0)中并没有这个网络的结构,其自带的只有inception v3这个网络结构。
二、如何使用最新的slim库
Reference:
https://github.com/tensorflow/models/tree/master/slim#Install
(1)下载代码(请自备代理服务器,使用代理服务器下载会快很多)
cd ~/projects
git clone https://github.com/tensorflow/models/
(2)编译独立的slim包,并安装之
cd models/slim
python setup.py build
sudo python setup.py install
(3)如何使用
比如使用inception_resnet_v2这网络可以这么导入
from nets import inception_resesnet_v2
当然具体用法可以可以参考reference
最好自己翻一下slim库的代码。更容易懂
这里有一个例子可以参考
https://github.com/kwotsin/transfer_learning_tutorial
阅读全文
0 0
- tensorflow系列:如何使用inception resnet v2网络
- 【Tensorflow slim 实战】写Inception-V4 Inception-ResNet-v2结构
- AI challenger 场景分类 tensorflow inception-resnet-v2 LB: 0.94361
- Inception-v4, Inception-ResNet
- Tensorflow slim resnet v2源码阅读笔记
- ResNet, AlexNet, VGG, Inception: 理解各种卷积网络的结构
- Inception系列3_Inception-v4:Inception-ResNet and the Impact of Residual Connections on Learning
- inception V4 与resnet
- TensorFlow Inception, ResNet, VGG net and more examples (TensorFlow 例子集合)
- Inception V2
- Tensorflow实例分析Google Inception v3 网络
- 系统学习深度学习(二十一)--GoogLeNetV4与Inception-ResNet V1,V2
- 论文笔记:Inception-V4, Inception-ResNet
- 【TensorFlow】迁移学习(使用Inception-v3)
- 网络模型 Inception V2/V3-Rethinking the Inception Architecture for Computer Vision
- 经典的卷积网络结构:AlexNet,VGGNet,Google Inception Net,ResNet(HR)
- Inception-V2,V3
- tensorflow搭建自己的残差网络(ResNet)
- Java哪些集合类是线程安全的?
- angularjs 文件上传ng-file-upload插件使用
- zookeeper安装
- Spark streaming+kafka+logstash日志分析
- linux--user/group/passwd
- tensorflow系列:如何使用inception resnet v2网络
- 百家实体企业经营情况调查:困难的日子过去了吗
- 从高考到程序员
- 轻量化的移动 App 设计更吃香
- 如何通过linux ssh远程linux不用输入密码登入-----scp命令可以本地与远程来回拖文件
- ReactNative ListView 组件
- Data truncation: Data too long for column 'urlname' at row 1
- Android/Java 设计模式之单例模式
- 软件测试必看的5本书