tensorflow代码实现:Inception模块
来源:互联网 发布:php eval 执行函数 编辑:程序博客网 时间:2024/06/05 12:49
引言:Inception-v3模型总共有46层,由11个Inception模块组成。
import tensorflow as tfslim=tf.contrib.slim#slim.arg_scope函数:第一个参数是一个函数列表,在这个列表中的函数将使用默认的参数取值。with slim.arg_scope([slim.conv2d,slim.max_pool2d,slim.avg_pool2d],stride=1,padding='SAME'): with tf.variable_scope('Maxed_7c'): with tf.variable_scope('Branch_0'): #net=上一层的输出节点矩阵 branch_0=slim.conv2d(net,320,[1,1],scope='Conv2d_0a_1*1') with tf.variable_scope('Branch_1'): branch_1=slim.conv2d(net,384,[1,1],scope='Conv2d_0a_1*1') #tf.concat函数:可以将多个矩阵拼接起来; #其中第一个参数:拼接的维度,‘3’代表了矩阵是在深度这个维度上进行拼接的。 branch_1=tf.concat(3,[slim.conv2d(branch_1,384,[1,3],scope='Conv2d_0b_1*3'),\ slim.conv2d(branch_1,384,[3,1],scope='Conv2d_0c_3*1')]) with tf.variable_scope('Branch_2'): branch_2=slim.conv2d(net,448,[1,1],scope='Conv2d_0a_1*1') branch_2=slim.conv2d(branch_2,384,[3,3],scope='Conv2d_0b_3*3') branch_2=tf.concat(3,[slim.conv2d(branch_2,384,[1,3],scope='Conv2d_0c_1*3'),\ slim.conv2d(branch_2,384,[3,1],scope='Conv2d_0d_3*1')]) with tf.variable_scope('Branch_3'): branch_3=slim.avg_pool2d(net,[3,3],scope='AvgPool_0a_3*3') branch_3=slim.conv2d(branch_3,192,[1,1],scope='Conv2d_0b_1*1') net=tf.concat(3,[branch_0,branch_1,branch_2,branch_3])
阅读全文
0 0
- tensorflow代码实现:Inception模块
- tensorflow实现 Inception V3
- Inception V3 的 tensorflow 实现
- TensorFlow 数据读取模块调用过程(inception)
- TensorFlow使用inception模型进行flower识别训练+修改原始inception实现predict
- Tensorflow实战9:Googel Inception net实现即时间测评
- 神经网络之Inception模型的实现(Python+TensorFlow)
- Tensorflow实战学习(三十二)【实现Google Inception Net】
- TensorFlow实现经典深度学习网络(3):TensorFlow实现Google Inception Net
- Tensorflow实例:Inception-v3模型
- 【Tensorflow slim 实战】写Inception-V4 Inception-ResNet-v2结构
- TensorFlow入门-Inception(v3)图像识别
- Tensorflow实例分析Google Inception v3 网络
- Tensorflow + ImageNet Inception-v3 视频图像识别
- TensorFlow Serving和Kubernetes 服务Inception模型
- 【TensorFlow】迁移学习(使用Inception-v3)
- TensorFlow中实现minst代码
- Inception
- 自动称重系统-3
- Python3使用csv模块csv.writer().writerow()保存csv文件,产生空行的问题
- 分页查询之 PageBean 的优化
- 对RxJava中.repeatWhen()和.retryWhen()操作符的思考
- kuangbin专题五 并查集 POJ2492 A Bug's Life
- tensorflow代码实现:Inception模块
- Scala in Action.pdf 英文原版 免费下载
- 排序算法
- apache flune 1.7 用户指南
- 使用OpenCV标定鱼眼镜头(C++)
- TCPIP Illustrated, Volume 1, 2nd Edition.pdf 英文原版 免费下载
- React数据获取为什么一定要在componentDidMount里面调用?
- shell之转义字符\
- node.js管理多版本---gnvm