(feats)
| 377 | |
| 378 | @staticmethod |
| 379 | def agents_to_batch(feats): |
| 380 | agent_num = feats.shape[1] |
| 381 | feat_list = [] |
| 382 | for i in range(agent_num): |
| 383 | feat_list.append(feats[:, i, :, :, :]) |
| 384 | feat_mat = torch.cat(tuple(feat_list), 0) |
| 385 | return feat_mat |
| 386 | |
| 387 | def ego_late_fusion(self, pred, gt, trans_matrices, num_agent_tensor, batch_size): |
| 388 | """ aggregation, ego use ground truth input, used specifically in inference time""" |
no outgoing calls
no test coverage detected