MCPcopy Create free account
hub / github.com/MotrixLab/MotionDiffuse / collate_fn

Function collate_fn

text2motion/datasets/evaluator.py:133–135  ·  view source on GitHub ↗
(batch)

Source from the content-addressed store, hash-verified

131
132
133def collate_fn(batch):
134 batch.sort(key=lambda x: x[3], reverse=True)
135 return default_collate(batch)
136
137
138'''For use of training text motion matching model, and evaluations'''

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected