MotionGPT3 icon indicating copy to clipboard operation
MotionGPT3 copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: 'datasets/humanml3d/template_t2m_instructions.json'

Open DominikVincent opened this issue 1 year ago • 1 comments

When doing: python -m test --cfg configs/MoT_vae_stage3.yaml --task t2m

some template.json seems to be missing:

Traceback (most recent call last):
  File "PATH_TO_REPO/motGPT/models/motgpt.py", line 434, in allsplit_step
    rs_set = self.val_t2m_forward(batch)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "PATH_TO_ENV/lib/python3.11/site-packages/torch/utils/_contextlib.py", line 115, in decorate_context
    return func(*args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^
  File "PATH_TO_REPO/motGPT/models/motgpt.py", line 222, in val_t2m_forward
    instructions = json.load(open(instructions, 'r'))
                             ^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'datasets/humanml3d/template_t2m_instructions.json'

DominikVincent avatar Oct 09 '25 15:10 DominikVincent

Please check the instruction_type in your config configs/MoT_vae_stage3.yaml. In our setup, Stage 3 is trained jointly on all tasks (t2m, m2t, and t2t), so we don’t ship a template_t2m_instructions.json.

If you want to fine-tune only on the Text-to-Motion (t2m) task, you can filter the Text-to-Motion entries from template_instructions.json and save them as template_t2m_instructions.json.

BoifZ avatar Oct 15 '25 02:10 BoifZ