GuyTevet / motion-diffusion-model

The official PyTorch implementation of the paper "Human Motion Diffusion Model"
MIT License
3.08k stars 333 forks source link

AttributeError: can't set attribute 'lines' #137

Closed wanghao-007 closed 1 year ago

wanghao-007 commented 1 year ago

Hello, when I run the script, I get the following error: ["the person walked forward and is picking up his toolbox." (00) | Rep #00 | -> sample00_rep00.mp4] Traceback (most recent call last): File "/home/wanghao/anaconda3/envs/aigc/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/wanghao/anaconda3/envs/aigc/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/wanghao/work-miao/motion-diffusion-model/sample/generate.py", line 258, in main() File "/home/wanghao/work-miao/motion-diffusion-model/sample/generate.py", line 190, in main plot_3d_motion(animation_save_path, skeleton, motion, dataset=args.dataset, title=caption, fps=fps) File "/home/wanghao/work-miao/motion-diffusion-model/data_loaders/humanml/utils/plot_script.py", line 129, in plot_3d_motion ani.save(save_path, fps=fps) File "/home/wanghao/anaconda3/envs/aigc/lib/python3.10/site-packages/matplotlib/animation.py", line 1090, in save anim._init_draw() # Clear the initial frame File "/home/wanghao/anaconda3/envs/aigc/lib/python3.10/site-packages/matplotlib/animation.py", line 1748, in _init_draw self._draw_frame(frame_data) File "/home/wanghao/anaconda3/envs/aigc/lib/python3.10/site-packages/matplotlib/animation.py", line 1767, in _draw_frame self._drawn_artists = self._func(framedata, *self._args) File "/home/wanghao/work-miao/motion-diffusion-model/data_loaders/humanml/utils/plot_script.py", line 95, in update ax.lines = [] AttributeError: can't set attribute 'lines'

So I commented out the two lines of code after successful execution: motion-diffusion-model/data_loaders/humanml/utils/plot_script.py 95 ax.lines = [] 96 ax.collections = []

but the resulting video is blank, only text on the top of the video, not clear why this is?

wanghao-007 commented 1 year ago

大佬带带我,这个问题,困扰我很久了。

GuyTevet commented 1 year ago

See https://github.com/GuyTevet/motion-diffusion-model/issues/41