NotImplementedError: It is not currently possible to manually set the aspect on 3D axes
See original GitHub issueDear @fabro66,
I am encountering the following error. Could you please fix it? Thanks.
python gen_skes.py -v baseball.mp4 -np 1 --animation
Loading YOLOv3 network.....
YOLOv3 network successfully loaded
Loading HRNet model ...
HRNet network successfully loaded
Generating 2D pose ...
100%|βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ| 277/277 [00:28<00:00, 9.77it/s]
Loading GAST-Net ...
/home/orazayy/GAST-Net-3DPoseEstimation-inference/model/local_attention.py:25: UserWarning: This overload of nonzero is deprecated:
nonzero()
Consider using one of the following signatures instead:
nonzero(*, bool as_tuple) (Triggered internally at /opt/conda/conda-bld/pytorch_1603729096996/work/torch/csrc/utils/python_arg_parser.cpp:882.)
self.e = nn.Parameter(torch.zeros(out_features, len(self.m[0].nonzero()), dtype=torch.float))
GAST-Net successfully loaded
Generating 3D human pose ...
Generating animation ...
Traceback (most recent call last):
File "gen_skes.py", line 179, in <module>
generate_skeletons(video=video_path, output_animation=args.animation, num_person=args.num_person)
File "gen_skes.py", line 153, in generate_skeletons
render_animation(re_kpts, keypoints_metadata, anim_output, skeleton, 25, 30000, np.array(70., dtype=np.float32),
File "/home/orazayy/GAST-Net-3DPoseEstimation-inference/tools/vis_h36m.py", line 111, in render_animation
ax.set_aspect('equal')
File "/home/orazayy/.conda/envs/wudu/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 1280, in set_aspect
raise NotImplementedError(
NotImplementedError: It is not currently possible to manually set the aspect on 3D axes
Issue Analytics
- State:
- Created 3 years ago
- Comments:8
Top Results From Across the Web
3D axes set_aspect("equal") NotImplementedError #15382
NotImplementedError : It is not currently possible to manually set the aspect on 3D axes Bug summary I am making a 3d scatter...
Read more >matplotlib (equal unit length): with 'equal' aspect ratio z-axis is ...
I believe matplotlib does not yet set correctly equal axis in 3D. ... ( + 'It is not currently possible to manually set...
Read more >Plot surface error: It is not currently possible to manually set ...
Hi, I have an Ubuntu 18.04, with nilearn installed using conda env. I'm Using matplotlib backend: Qt5Agg (in case its relevant).
Read more >matplotlib 3d axes aspect ratio
The plot box aspect ratio is the relative lengths of the x-axis, y-axis, and z-axis. ... it is not currently possible to manually...
Read more >matplotlib.axes.Axes.set_aspect
set_aspect. Set the aspect of the axis scaling, i.e. the ratio of y-unit to x-unit. a circle will be stretched such that the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This is my
pip freeze
output:@rirri93 many thanks! It now works with your library versions. I really appreciate it.