【New_Unet3plus】

change 21line

because

 

then

wrong

 change 129

then

change every 2000 saved

then

 wrong

change

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
`deeplabv3_unet_s5-d16` 是 mmsegmentation 提供的一种语义分割模型,其网络结构是将 DeepLabv3 和 UNet 结合在一起,可以同时兼顾 DeepLabv3 的优秀语义分割能力和 UNet 的精细边缘检测能力。 具体来说,`deeplabv3_unet_s5-d16` 的 backbone 是一个 ResNet-101,decode_head 是一个 Deeplabv3+UNet 的结合体,其中 DeepLabv3 部分使用空洞卷积(ASPPHead)来扩大感受野,UNet 部分使用上采样和融合不同层的特征图来增强精细边缘检测的能力。该模型的输入大小为 $512\times512$,输出大小为 $512\times512$,输出通道数为 19(COCO 数据集的类别数)。 下面是该模型的网络结构: ```python norm_cfg = dict(type='BN', requires_grad=True) model = dict( type='EncDec', backbone=dict( type='ResNet', arch='resnet101', replace_stride_with_dilation=[False, True, True], output_stride=16), decode_head=dict( type='DepthwiseSeparableASPPHead', in_channels=2048, in_index=3, channels=512, dilations=(1, 12, 24, 36), c1_in_channels=256, c1_channels=48, dropout_ratio=0.1, num_classes=19, norm_cfg=norm_cfg, align_corners=False, loss_decode=dict( type='CrossEntropyLoss', use_sigmoid=False, loss_weight=1.0)), auxiliary_head=dict( type='FCNHead', in_channels=1024, in_index=2, channels=256, num_convs=1, concat_input=False, dropout_ratio=0.1, num_classes=19, norm_cfg=norm_cfg, align_corners=False, loss_decode=dict( type='CrossEntropyLoss', use_sigmoid=False, loss_weight=0.4))) ``` 其中,`DepthwiseSeparableASPPHead` 是 DeepLabv3 的 ASPPHead 和 UNet 的 Decoder 部分结合的产物,`FCNHead` 是 UNet 的 Encoder 部分。该模型在训练时使用交叉熵损失函数,损失函数的权重为 1.0 和 0.4(对应 decode_head 和 auxiliary_head)。
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值