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

NotImplementedError: Axes3D currently only supports the aspect argument 'auto'. You passed in 'equal'. #12

Closed
takeyamayuki opened this issue Jul 6, 2022 · 2 comments

Comments

@takeyamayuki
Copy link

After training the model according to README, I typed python demo/vis.py --video back.webm and got the following error.

(venv) yuki@take-ubuntu2:~/workspace/StridedTransformer-Pose3D$ python demo/vis.py --video back.webm

Generating 2D pose...
100%|███████████████████████████████████████████████████████████████████████████| 499/499 [00:44<00:00, 11.21it/s]
Generating 2D pose successful!

Generating 3D pose...
  0%|                                                                                     | 0/499 [00:00<?, ?it/s]
Traceback (most recent call last):
  File "demo/vis.py", line 276, in <module>
    get_pose3D(video_path, output_dir)
  File "demo/vis.py", line 222, in get_pose3D
    show3Dpose( post_out, ax)
  File "demo/vis.py", line 68, in show3Dpose
    ax.set_aspect('equal')
  File "/home/yuki/workspace/StridedTransformer-Pose3D/venv/lib/python3.6/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'.

I looked into this error and found that the following line seems to be the cause.

ax.set_aspect('equal')

I replaced this line with ax.set_aspect('auto') or ax.set_box_aspect([1,1,1]) according to fabro66/GAST-Net-3DPoseEstimation#51 and it works fine.

Why do you write ax.set_aspect('equal')?

If there is no particular reason then it needs to be fixed.

@Vegetebird
Copy link
Owner

It works fine in matplotlib==2.2.2, may be you could try it.

@takeyamayuki
Copy link
Author

ok. thanks!

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

2 participants