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

Method forward

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

Source from the content-addressed store, hash-verified

200 self.classifier=nn.Conv2d(128, num_classes, 1)
201
202 def forward(self, x):
203 #intput_shape=x.shape[-2:]
204 x8, x16=x["8"],x["16"]
205 x16=self.head16(x16)
206 x16 = F.interpolate(x16, size=x8.shape[-2:], mode='bilinear', align_corners=False)
207 x8=self.head8(x8)
208 x=torch.cat((x8, x16), dim=1)
209 x=self.conv(x)
210 x=self.classifier(x)
211 return x
212
213class Exp2_Decoder10(nn.Module):
214 def __init__(self, num_classes,channels):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected