| 91 | |
| 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) |
| 104 | x = self.visible.bn1(x) |
| 105 | x = self.visible.relu(x) |
| 106 | x = self.visible.maxpool(x) |
| 107 | return x |
| 108 | |
| 109 | |
| 110 | class thermal_module(nn.Module): |