1. 首页
  2. 数据库
  3. 其它
  4. U net结构图及其Pytorch实现

U net结构图及其Pytorch实现

上传者: 2021-01-10 16:00:09上传 PDF文件 81.92KB 热度 8次
import torch import torch.nn as nn import torch.nn.functional as F class double_conv(nn.Module): '''(conv => BN => ReLU) * 2''' def __init__(self, in_ch, out_ch): super(double_conv, self).__init__() self.conv = nn.Sequential( nn.Conv2d(in_ch, out_ch, 3, padding=1)
下载地址
用户评论