MCPcopy Create free account
hub / github.com/MotrixLab/AiOS / _get_src_permutation_idx

Method _get_src_permutation_idx

models/aios/criterion_smplx.py:800–805  ·  view source on GitHub ↗
(self, indices)

Source from the content-addressed store, hash-verified

798 return losses
799
800 def _get_src_permutation_idx(self, indices):
801 # permute predictions following indices
802 batch_idx = torch.cat(
803 [torch.full_like(src, i) for i, (src, _) in enumerate(indices)])
804 src_idx = torch.cat([src for (src, _) in indices])
805 return batch_idx, src_idx
806
807 def _get_tgt_permutation_idx(self, indices):
808 # permute targets following indices

Callers 1

get_lossMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected