MCPcopy Create free account
hub / github.com/coperception/star / agents_to_batch

Method agents_to_batch

star/models/CNNNet.py:379–385  ·  view source on GitHub ↗
(feats)

Source from the content-addressed store, hash-verified

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"""

Callers 8

ego_late_fusionMethod · 0.95
forward_fusionMethod · 0.45
late_fusionMethod · 0.45
forward_fusionMethod · 0.45
late_fusionMethod · 0.45
ego_late_fusionMethod · 0.45
late_fusionMethod · 0.45
ego_late_fusionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected