(self, arch='resnet50')
| 92 | |
| 93 | class visible_module(nn.Module): |
| 94 | def __init__(self, arch='resnet50'): |
| 95 | super(visible_module, self).__init__() |
| 96 | |
| 97 | model_v = resnet50(pretrained=True, |
| 98 | last_conv_stride=1, last_conv_dilation=1) |
| 99 | # avg pooling to global pooling |
| 100 | self.visible = model_v |
| 101 | |
| 102 | def forward(self, x): |
| 103 | x = self.visible.conv1(x) |