MCPcopy Create free account
hub / github.com/HYUNJS/SGT / forward

Method forward

projects/CenterNet/centernet/losses.py:198–201  ·  view source on GitHub ↗
(self, output, mask, ind, rotbin, rotres)

Source from the content-addressed store, hash-verified

196 super(BinRotLoss, self).__init__()
197
198 def forward(self, output, mask, ind, rotbin, rotres):
199 pred = gather_feature(output, ind, use_transform=True)
200 loss = compute_rot_loss(pred, rotbin, rotres, mask)
201 return loss
202
203
204def compute_res_loss(output, target):

Callers

nothing calls this directly

Calls 2

compute_rot_lossFunction · 0.85
gather_featureFunction · 0.50

Tested by

no test coverage detected