(self, arch='resnet50')
| 109 | |
| 110 | class thermal_module(nn.Module): |
| 111 | def __init__(self, arch='resnet50'): |
| 112 | super(thermal_module, self).__init__() |
| 113 | |
| 114 | model_t = resnet50(pretrained=True, |
| 115 | last_conv_stride=1, last_conv_dilation=1) |
| 116 | # avg pooling to global pooling |
| 117 | self.thermal = model_t |
| 118 | |
| 119 | def forward(self, x): |
| 120 | x = self.thermal.conv1(x) |