(self, feat_to_decode: torch.Tensor, encoder_feats: List[torch.Tensor])
| 379 | self.out_norm = nn.LayerNorm((output_channel, int(input_hw[0]), int(input_hw[1]))) |
| 380 | |
| 381 | def forward(self, feat_to_decode: torch.Tensor, encoder_feats: List[torch.Tensor]): |
| 382 | assert len(encoder_feats) >= 3 |
| 383 | x = self.conv1(feat_to_decode) |
| 384 | x = self.up1(x, encoder_feats[-1]) |
| 385 | x = self.up2(x, encoder_feats[-2]) |
| 386 | x = self.up3(x, encoder_feats[-3]) |
| 387 | x = self.conv2(x) |
| 388 | x = self.conv3(x) |
| 389 | return self.out_norm(x) |
| 390 | |
| 391 | def query_feature_grid(pos, feat_grid): |
| 392 | ''' |
nothing calls this directly
no outgoing calls
no test coverage detected