版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/baidu_27643275/article/details/88909793
结构
ResNet50结构:
推荐查看:caffe可视化版
resnet50中1x1
filter的作用:
1、在shortcut connection block的残差层中使用1x1的fiter先降维
(channel),然后再使用1x1的fiter升维
,使残差层输出与恒等映射层的通道match
2、在恒等映射层使用,使恒等映射层和残差层的通道数匹配
3、conv3_x到conv5_x这三个大块的首个单元都使用1x1 s=2的filter 减小feature map的维度(宽高)
在tensorflow中可直接导入
from tensorflow.contrib.slim.nets import resnet_v1
tensorflow 2.0不支持tf.contrib了