ResidualNetWorks总结

ResNets:即残差网络,能帮助解决由于网络结构过于deep而产生的梯度消失问题。

Two main types of blocks are used in a ResNet, depending mainly on whether the input/output dimensions are same or different:

The identity block is the standard block used in ResNets, and corresponds to the case where the input activation(say a[l]) has the same dimension as the output activation(say a[l+2]), here is an alternative diagram showing the individual steps:

 

                 Figure 1 : Identity block . Skip connection "skip over" 2 layers.

 

                                                                 Figure 2 : Identity block . Skip connection "skip over" 3 layers.

 

                                                                                                                            Figure 3 : Convolutiional block . 

 

 

上述两种方式,代码实现起来也比较简单,可以参考deeplearning作业(这里用keras实现):https://github.com/NumberFairy/deep_learning_answer/blob/master/test4_2_residualNetworks/residualNetworks/index.py

 

转载于:https://www.cnblogs.com/ZT-SummerRain/p/8193936.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值