DeepMotionEditing / deep-motion-editing

An end-to-end library for editing and rendering motion of 3D characters with deep learning [SIGGRAPH 2020]
BSD 2-Clause "Simplified" License
1.58k stars 256 forks source link

运行demo.py会出现错误 #166

Closed Richard149 closed 3 years ago

Richard149 commented 3 years ago

Hi,感谢你们这么棒的工作,我在运行test.py没有问题,但是运行demo.py会出现: RuntimeError: one of the variables needed for gradient computation has been modified by an inplace operation: [torch.FloatTensor [324, 3, 3]], which is output 0 of ViewBackward, is at version 37; expected version 35 instead. Hint: enable anomaly detection to find the operation that failed to compute its gradient, with torch.autograd.set_detect_anomaly(True) 请问这是因为IK的关系才会出现这样的错误吗?

PeizhuoLi commented 3 years ago

Hi, 能提供一下更具体的报错信息吗,譬如行号以及调用栈等

Richard149 commented 3 years ago

感谢您的及时回复,出错的信息如下 报错信息 错误位置是这个函数 fix_foot_contact() 我将这个函数注释掉就可以正常运行了

错误位置

PeizhuoLi commented 3 years ago

你好,我尝试了一下无法复现这个问题。也许可以检查一下是不是运行的环境有一些问题?

Richard149 commented 3 years ago

好的好的,谢谢您!