PyTorch实现U-net网络
import torch.nn as nnimport torch.nn.functional as Fimport torchclass DoubleConv(nn.Module): """ DoubleConv 模块 (convolution => [BN] => ReLU) * 2 连续两次的卷积操作:U-net网络中,下采样和上采样过程,每一层都会连续进行两次卷积操作 """ def __init__(self, in_chann
原创
2021-10-14 17:29:23 ·
2512 阅读 ·
0 评论