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

Got Error with foot sliding loss #7

Open
TongbaoYang opened this issue Sep 9, 2021 · 0 comments
Open

Got Error with foot sliding loss #7

TongbaoYang opened this issue Sep 9, 2021 · 0 comments

Comments

@TongbaoYang
Copy link

TongbaoYang commented Sep 9, 2021

I got a RuntimeError when running trian.py, it seems that the shepe of pred_vel and contact not matched. Here are the infomation:
我照着程序跑的时候出问题了,应该是计算foot sliding loss中的两个张量形状不一样。报错信息如下:

  File "C:\Users\smki\anaconda3\envs\dl\lib\runpy.py", line 265, in run_path
    return _run_module_code(code, init_globals, run_name,
  File "C:\Users\ytb\smki\envs\dl\lib\runpy.py", line 97, in _run_module_code
    _run_code(code, mod_globals, init_globals,
  File "C:\Users\smki\anaconda3\envs\dl\lib\runpy.py", line 87, in _run_code
    exec(code, run_globals)
  File "d:\UserProfile\Documents\GitDownload\Pytorch-Robust-Motion-In-betweening\train.py", line 300, in <module>
    loss_slide = torch.mean(torch.abs(pred_vel * contact[:,:-1].permute(0, 2, 1).unsqueeze(2)))
RuntimeError: The size of tensor a (9) must match the size of tensor b (49) at non-singleton dimension 3
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