Closed jprnd closed 1 year ago
Can you please check for me what is your matplotlib
version? If it is not compatible with the version specified on our environment.yml
file, please try to install the version we use and rerun.
worked! thank you.
It can be easily fixed by replacing with ax.clear()
.
ERROR When running text to motion:
saving results file to [./save/humanml_trans_enc_512/samples_humanml_trans_enc_512_000200000_seed10_the_person_walked_forward_and_is_picking_up_his_toolbox/results.npy] saving visualizations to [./save/humanml_trans_enc_512/samples_humanml_trans_enc_512_000200000_seed10_the_person_walked_forward_and_is_picking_up_his_toolbox]... ["the person walked forward and is picking up his toolbox." (00) | Rep #00 | -> sample00_rep00.mp4] Traceback (most recent call last): File "/home/jpaskett/miniconda3/envs/mdm/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/home/jpaskett/miniconda3/envs/mdm/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/jpaskett/motion-diffusion-model/sample/generate.py", line 256, in
main()
File "/home/jpaskett/motion-diffusion-model/sample/generate.py", line 189, in main
plot_3d_motion(animation_save_path, skeleton, motion, dataset=args.dataset, title=caption, fps=fps)
File "/home/jpaskett/motion-diffusion-model/data_loaders/humanml/utils/plot_script.py", line 128, in plot_3d_motion
ani.save(save_path, fps=fps)
File "/home/jpaskett/miniconda3/envs/mdm/lib/python3.10/site-packages/matplotlib/animation.py", line 1068, in save
anim._init_draw() # Clear the initial frame
File "/home/jpaskett/miniconda3/envs/mdm/lib/python3.10/site-packages/matplotlib/animation.py", line 1706, in _init_draw
self._draw_frame(frame_data)
File "/home/jpaskett/miniconda3/envs/mdm/lib/python3.10/site-packages/matplotlib/animation.py", line 1728, in _draw_frame
self._drawn_artists = self._func(framedata, *self._args)
File "/home/jpaskett/motion-diffusion-model/data_loaders/humanml/utils/plot_script.py", line 95, in update
ax.lines = []
AttributeError: can't set attribute 'lines'