una-dinosauria/3d-pose-baseline

NotImplementedError: It is not currently possible to manually set the aspect on 3D axes

Closed this issue · 3 comments

  1. Ubuntu 18
  2. tensorflow '1.14.0'
  3. python 3.6.8
  4. Traceback (most recent call last):
    File "src/predict_3dpose.py", line 537, in
    tf.app.run()
    File "/home/ensta/venv/lib/python3.6/site-packages/tensorflow/python/platform/app.py", line 40, in run
    _run(main=main, argv=argv, flags_parser=_parse_flags_tolerate_undef)
    File "/home/ensta/venv/lib/python3.6/site-packages/absl/app.py", line 299, in run
    _run_main(main, args)
    File "/home/ensta/venv/lib/python3.6/site-packages/absl/app.py", line 250, in _run_main
    sys.exit(main(argv))
    File "src/predict_3dpose.py", line 532, in main
    sample()
    File "src/predict_3dpose.py", line 518, in sample
    viz.show3Dpose( p3d, ax2 )
    File "/home/ensta/3d-pose-baseline/src/viz.py", line 56, in show3Dpose
    ax.set_aspect('equal')
    File "/home/ensta/venv/lib/python3.6/site-packages/matplotlib/axes/_base.py", line 1281, in set_aspect
    'It is not currently possible to manually set the aspect '
    NotImplementedError: It is not currently possible to manually set the aspect on 3D axes

to install older version matplotlib 2.2. for me it works.
$ pip install matplotlib==2.2
maybe matplotlib 3 is only for python3. i am not sure of reasons. but it works.

I have the same problem, but when I was running this code:python src/predict_3dpose.py --camera_frame --residual --batch_norm --dropout 0.5 --max_norm --evaluateActionWise --use_sh --epochs 1 --sample --load 24371。
I didn't install Matplotlib. My Python > 3, so Matplotlib is also 3.0,then it works

Same as you ,I change the matplotlib from 3.3 to 3.0,it works