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

Method agents_to_batch

star/models/mae_base.py:638–644  ·  view source on GitHub ↗
(feats)

Source from the content-addressed store, hash-verified

636 # shaped like: [ (batch_agent1, batch_agent2, ...) , channel, h, w]
637 @staticmethod
638 def agents_to_batch(feats):
639 agent_num = feats.shape[1]
640 feat_list = []
641 for i in range(agent_num):
642 feat_list.append(feats[:, i, :, :, :])
643 feat_mat = torch.cat(tuple(feat_list), 0)
644 return feat_mat
645
646 def forward_encoder(self, x1, x_next, mask_ratio):
647 # embed patches

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected