Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I encountered a RuntimeError while running the training #4

Open
XGraphKhipu opened this issue Jun 15, 2024 · 0 comments
Open

I encountered a RuntimeError while running the training #4

XGraphKhipu opened this issue Jun 15, 2024 · 0 comments

Comments

@XGraphKhipu
Copy link

XGraphKhipu commented Jun 15, 2024

Hello,

when I run: python train.py name=humanml_trans_enc_512_4gpu_600k dataset=humanml training.eval_during_training=0 model.cond_mask_prob=0.1 guidance_param=2.5 training.overwrite=1 training.log_interval=1000 batch_size=128 training.num_steps=600000 num_workers=8 input_text=./assets/example_text_prompts.txt is_debug=0

I get this error message:

return module_to_run(*inputs[0], **kwargs[0])
  File "/home/user/anaconda3/envs/motionfm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/user/motionfm/model/mdm_flow.py", line 323, in forward
    x = self.input_process(x)
  File "/home/user/anaconda3/envs/motionfm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/user/motionfm/model/mdm_flow.py", line 423, in forward
    x = self.poseEmbedding(x)  # [seqlen, bs, d]
  File "/home/user/anaconda3/envs/motionfm/lib/python3.9/site-packages/torch/nn/modules/module.py", line 1190, in _call_impl
    return forward_call(*input, **kwargs)
  File "/home/user/anaconda3/envs/motionfm/lib/python3.9/site-packages/torch/nn/modules/linear.py", line 114, in forward
    return F.linear(input, self.weight, self.bias)
RuntimeError: mat1 and mat2 shapes cannot be multiplied (25088x251 and 263x512)

What could be happening?

@XGraphKhipu XGraphKhipu changed the title I encountered a RuntimeError while running my model. Below is the error trace: I encountered a RuntimeError while running the training Jun 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant