https://github.com/EricGuo5513/momask-codes/blob/main/utils/eval_t2m.py