MCPcopy Create free account
hub / github.com/XLearning-SCU/2022-CVPR-DART / thermal_module

Class thermal_module

model.py:110–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108
109
110class 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)
121 x = self.thermal.bn1(x)
122 x = self.thermal.relu(x)
123 x = self.thermal.maxpool(x)
124 return x
125
126
127class base_resnet(nn.Module):

Callers 1

__init__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected