ResNet的一些

本文介绍了ResNet网络结构,包括其解决梯度消失问题的残差块设计。接着,讨论了ResNeXt如何通过组卷积在减少参数量的同时提升精度。最后,提到了wide-ResNet,它通过增加通道数来增强网络的表现能力。文章内容未完待续。
摘要由CSDN通过智能技术生成

文章目录


代码来自MXNET

ResNet

ResNet-18ResNet-34使用的是Basic Block,而ResNet-50以及更深层的网络使用的是Bottleneck block
在这里插入图片描述

class BasicBlockV1b(HybridBlock):
    """ResNetV1b BasicBlockV1b
    """
    expansion = 1
    def __init__(self, planes, strides=1, dilation=1, downsample=None,
                 previous_dilation=1, norm_layer=None, norm_kwargs=None, **kwargs):
        super(BasicBlockV1b, self).__init__()
        norm_kwargs = norm_kwargs if norm_kwargs is not None else {
   }
        # first 3x3 conv
        self.conv1 = nn.Conv2D(channels=planes, kernel_size=3, strides=strides,
                               padding=dilation, dilation=dilation, use_bias=False)
        self.bn1 = norm_layer(in_channels=planes, **({
   } if norm_kwargs is None else norm_kwargs))
        self.relu1 = nn.Activation('relu')
        # second 3x3 conv
        self.conv2 = nn.Conv2D(channels=planes, kernel_size=3, strides=1,
                               padding=previous_dilation, dilation=previous_dilation,
                               use_bias=False)
        self.bn2 = norm_layer(in_channels=planes, **({
   } if<
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值