MCPcopy Create free account
hub / github.com/RolandGao/RegSeg / forward

Method forward

blocks.py:242–251  ·  view source on GitHub ↗
(self, x)

Source from the content-addressed store, hash-verified

240 self.classifier=nn.Conv2d(128, num_classes, 1)
241
242 def forward(self, x):
243 #intput_shape=x.shape[-2:]
244 x8, x16=x["8"],x["16"]
245 x16=self.head16(x16)
246 x16 = F.interpolate(x16, size=x8.shape[-2:], mode='bilinear', align_corners=False)
247 x8=self.head8(x8)
248 x= x8 + x16
249 x=self.conv(x)
250 x=self.classifier(x)
251 return x
252
253class Exp2_Decoder14(nn.Module):
254 def __init__(self, num_classes, channels):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected