| 11 | from .model.modules import vgg16_bn, init_weights |
| 12 | |
| 13 | class double_conv(nn.Module): |
| 14 | def __init__(self, in_ch, mid_ch, out_ch): |
| 15 | super(double_conv, self).__init__() |
| 16 | self.conv = nn.Sequential( |
| 17 | nn.Conv2d(in_ch + mid_ch, mid_ch, kernel_size=1), |
| 18 | nn.BatchNorm2d(mid_ch), |
| 19 | nn.ReLU(inplace=True), |
| 20 | nn.Conv2d(mid_ch, out_ch, kernel_size=3, padding=1), |
| 21 | nn.BatchNorm2d(out_ch), |
| 22 | nn.ReLU(inplace=True) |
| 23 | ) |
| 24 | |
| 25 | def forward(self, x): |
| 26 | x = self.conv(x) |
| 27 | return x |
| 28 | |
| 29 | |
| 30 | class CRAFT(nn.Module): |
no outgoing calls
no test coverage detected
searching dependent graphs…