[GoogLeNet]Inception-ResNet-v1

参考:Inception-v4, Inception-ResNet and the Impact of Residual Connections on Learning,解析Inception-ResNet-v1架构

总体架构

All the convolutions not marked with “V” in the figures are same-padded meaning that their output grid matches the size of their input. Convolutions marked with “V” are valid padded, meaning that input patch of each unit is fully contained in the previous layer and the grid size of the output activation map is reduced accordingly

在下面各个模块的结构图中,没有加$V$符号的表示其输出数据体的空间尺寸和输入相同;加$V$符号的表示输出数据体空间尺寸进行了衰减

Stem

  • $Input = 3\times 299\times 299$
  • $Output = 256\times 35\times 35$

Inception-ResNet-A

  • $Input = 256\times 35\times 35$
  • $Output = 256\times 35\times 35$

Reduction-A

超参数$k = 192, l = 192, m = 256, n = 384$

  • $Input = 256\times 35\times 35$
  • $Output = 896\times 17\times 17$

Inception-ResNet-B

  • $Input = 896\times 17\times 17$
  • $Output = 896\times 17\times 17$

Reduction-B

  • $Input = 896\times 17\times 17$
  • $Output = 1792\times 8\times 8$

Inception-ResNet-C

  • $Input = 1792\times 8\times 8$
  • $Output = 1792\times 8\times 8$

实现

分别定义上述6个模块,然后定义Inception_ResNet_v1模型,完整实现参考inception_resnet_v1.py

坚持原创技术分享,您的支持将鼓励我继续创作!