question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

openpose: visualization of 3D predictions joint

See original GitHub issue

Hello everyone,

I’m trying to execute the following command for getting the 3D pose output:

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 output/ --write_gif --gif_fps 24

But am getting the following error

experiments\All\dropout_0.5\epochs_200\lr_0.001\residual\depth_2\linear_size1024\batch_size_64\no_procrustes\maxnorm\batch_normalization\use_stacked_hourglass\predict_17
A subdirectory or file -p already exists.
Error occurred while processing: -p.
A subdirectory or file experiments\All\dropout_0.5\epochs_200\lr_0.001\residual\depth_2\linear_size1024\batch_size_64\no_procrustes\maxnorm\batch_normalization\use_stacked_hourglass\predict_17\log already exists.
Error occurred while processing: experiments\All\dropout_0.5\epochs_200\lr_0.001\residual\depth_2\linear_size1024\batch_size_64\no_procrustes\maxnorm\batch_normalization\use_stacked_hourglass\predict_17\log.
INFO:__main__:start reading json files
Traceback (most recent call last):
 File "src/openpose_3dpose_sandbox.py", line 415, in <module>
   tf.app.run()
 File "C:\Program Files\Anaconda3\envs\pose3Drnn\lib\site-packages\tensorflow\python\platform\app.py", line 125, in run
   _sys.exit(main(argv))
 File "src/openpose_3dpose_sandbox.py", line 232, in main
   smoothed = read_openpose_json()
 File "src/openpose_3dpose_sandbox.py", line 131, in read_openpose_json
   drop_curves_plot.savefig(pngName)
 File "C:\Program Files\Anaconda3\envs\pose3Drnn\lib\site-packages\matplotlib\pyplot.py", line 689, in savefig
   res = fig.savefig(*args, **kwargs)
 File "C:\Program Files\Anaconda3\envs\pose3Drnn\lib\site-packages\matplotlib\figure.py", line 2094, in savefig
   self.canvas.print_figure(fname, **kwargs)
 File "C:\Program Files\Anaconda3\envs\pose3Drnn\lib\site-packages\matplotlib\backend_bases.py", line 2075, in print_figure
   **kwargs)
 File "C:\Program Files\Anaconda3\envs\pose3Drnn\lib\site-packages\matplotlib\backends\backend_agg.py", line 521, in print_png
   cbook.open_file_cm(filename_or_obj, "wb") as fh:
 File "C:\Program Files\Anaconda3\envs\pose3Drnn\lib\contextlib.py", line 81, in __enter__
   return next(self.gen)
 File "C:\Program Files\Anaconda3\envs\pose3Drnn\lib\site-packages\matplotlib\cbook\__init__.py", line 407, in open_file_cm
fh, opened = to_filehandle(path_or_file, mode, True, encoding)
 File "C:\Program Files\Anaconda3\envs\pose3Drnn\lib\site-packages\matplotlib\cbook\__init__.py", line 392, in to_filehandle
   fh = open(fname, flag, encoding=encoding)
FileNotFoundError: [Errno 2] No such file or directory: 'gif_output/dirty_plot.png'
  1. Operating system: Windows 10
  2. TensorFlow version: 1.13.1
  3. Python version:3.6.5

Can anyone help me out with this?

Thanks in advance

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:19 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ShaminiKoravunacommented, Apr 27, 2019

sorry for the trouble I got it now. As there 96 values in the vector these values correspond to x, y, z values of the 32 key joints i.e., 32*3=96 I tried plotting it in 3D matplotlib if was showing all the key joints. Thanks a lot for you help.

0reactions
ShiyangChuaicommented, Oct 12, 2021

yeah thank you

Hello, did you solve the problem? I have exactly the same problem. Even after I create the folder named gif_output in the folder named 3d-pose-baseline. Can you help me?

Read more comments on GitHub >

github_iconTop Results From Across the Web

A Comprehensive Guide on Human Pose Estimation
OpenPose is a free human joints detection library that works in real-time. It detects key points for the body, face, hands, and foot...
Read more >
Absolute Human Pose Estimation with Depth Prediction Network
Abstract—The common approach to 3D human pose estimation is predicting the body joint coordinates relative to the hip.
Read more >
openpose - DagsHub
OpenPose represents the first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints (in total 135 keypoints) on ...
Read more >
3d human pose estimation on taiji sequence
2D human pose first and then predict the 3D pose from 2D joint locations. In our ... (3) With the aligned video-MoCap data...
Read more >
3D Human Pose Estimation - Victoria Mazo - Medium
There are two major approaches: bottom-up (first detect body joints and then group them to get a person's pose) and top-down (detect people ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found