una-dinosauria / 3d-pose-baseline

A simple baseline for 3d human pose estimation in tensorflow. Presented at ICCV 17.
MIT License
1.41k stars 355 forks source link

FileNotFoundError: [Errno 2] No such file or directory: 'png/pose_frame_000000000000.png' #170

Closed ghost closed 4 years ago

ghost commented 4 years ago

Hi, we are running your code and we keep havng the same error.

We are using the version forked https://github.com/ArashHosseini/3d-pose-baseline) with this parameters:

python src/openpose_3dpose_sandbox.py --camera_frame --residual --batch_norm --dropout 0.5 --max_norm --evaluateActionWise --use_sh --epochs 200 --load 4874200 --pose_estimation_json ./json/testvideo --write_gif --gif_fps 24 --verbose 3 --interpolation --multiplier 0.5

In the folder json/testvideo we have a set of keypoints that we got using https://github.com/ArashHosseini/tf-pose-estimation. We have created the gif_output folder.

This is the error we have:

Traceback (most recent call last): File "src/openpose_3dpose_sandbox.py", line 449, in tf.app.run() File "/home/nico/miniconda3/envs/tfopen3D/lib/python3.7/site-packages/tensorflow/python/platform/app.py", line 125, in run _sys.exit(main(argv)) File "src/openpose_3dpose_sandbox.py", line 412, in main plt.savefig(pngName) File "/home/nico/miniconda3/envs/tfopen3D/lib/python3.7/site-packages/matplotlib-3.2.0rc3-py3.7-linux-x86_64.egg/matplotlib/pyplot.py", line 723, in savefig res = fig.savefig(args, kwargs) File "/home/nico/miniconda3/envs/tfopen3D/lib/python3.7/site-packages/matplotlib-3.2.0rc3-py3.7-linux-x86_64.egg/matplotlib/figure.py", line 2203, in savefig self.canvas.print_figure(fname, kwargs) File "/home/nico/miniconda3/envs/tfopen3D/lib/python3.7/site-packages/matplotlib-3.2.0rc3-py3.7-linux-x86_64.egg/matplotlib/backends/backend_qt5agg.py", line 94, in print_figure super().print_figure(args, kwargs) File "/home/nico/miniconda3/envs/tfopen3D/lib/python3.7/site-packages/matplotlib-3.2.0rc3-py3.7-linux-x86_64.egg/matplotlib/backend_bases.py", line 2093, in print_figure kwargs) File "/home/nico/miniconda3/envs/tfopen3D/lib/python3.7/site-packages/matplotlib-3.2.0rc3-py3.7-linux-x86_64.egg/matplotlib/backends/backend_agg.py", line 535, in print_png with cbook.open_file_cm(filename_or_obj, "wb") as fh: File "/home/nico/miniconda3/envs/tfopen3D/lib/python3.7/contextlib.py", line 112, in enter return next(self.gen) File "/home/nico/miniconda3/envs/tfopen3D/lib/python3.7/site-packages/matplotlib-3.2.0rc3-py3.7-linux-x86_64.egg/matplotlib/cbook/init.py", line 418, in open_file_cm fh, opened = to_filehandle(path_or_file, mode, True, encoding) File "/home/nico/miniconda3/envs/tfopen3D/lib/python3.7/site-packages/matplotlib-3.2.0rc3-py3.7-linux-x86_64.egg/matplotlib/cbook/init.py", line 403, in to_filehandle fh = open(fname, flag, encoding=encoding) FileNotFoundError: [Errno 2] No such file or directory: 'png/pose_frame_000000000000.png'

Any suggestions on how to fix this? Thanks a lot!

ghost commented 4 years ago

We found our problem, the folder 'png' was missing.