fabro66 / GAST-Net-3DPoseEstimation

A Graph Attention Spatio-temporal Convolutional Networks for 3D Human Pose Estimation in Video (GAST-Net)
MIT License
314 stars 69 forks source link

Axes3D currently only supports the aspect argument 'auto'. You passed in 'equal'. #51

Open PJJie opened 3 years ago

PJJie commented 3 years ago

https://github.com/fabro66/GAST-Net-3DPoseEstimation/blob/master/INFERENCE_EN.md

The following problems occurred after the configuration was run

Traceback (most recent call last): File "gen_skes.py", line 180, in generate_skeletons(video=video_path, output_animation=args.animation, num_person=args.num_person) File "gen_skes.py", line 155, in generate_skeletons viz_output, input_video_path=video, viewport=(width, height), com_reconstrcution=same_coord) File "/home/junjie/tmp/GAST-Net2/tools/vis_h36m.py", line 111, in render_animation ax.set_aspect('equal') File "/home/共享文件/anaconda3/envs/pytorch13_py37/lib/python3.7/site-packages/mpl_toolkits/mplot3d/axes3d.py", line 324, in set_aspect "Axes3D currently only supports the aspect argument " NotImplementedError: Axes3D currently only supports the aspect argument 'auto'. You passed in 'equal'.

vicentowang commented 3 years ago

@PJJie passe 'auto' instead of 'equal' , solved.

MarcvdSluys commented 2 years ago

I tried that, but my sphere looks like a sphere with 'equal' (left) and like an ellipsoid with 'auto' (right). How can I tell 'auto' to use equal scaling for the x, y and z axes?

spheres

Ah, replacing ax.set_aspect('equal') with ax.set_box_aspect([1,1,1]) solves this.