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.

Issue while running a sample video

See original GitHub issue

Hi I was trying to run videopose.py using python 3.7 in virtual env using ubuntu 18.04. The command i used was as follows

python3.7 videopose.py --video ./outputs/kunkun_cut.mp4 which results in the following error

Traceback (most recent call last):
  File "videopose.py", line 174, in <module>
    inference_video('outputs/dance.mp4', 'alpha_pose')
  File "videopose.py", line 163, in inference_video
    main(args)
  File "videopose.py", line 67, in main
    split_video(args.viz_video)
  File "/sandbox/video-to-pose3D/common/utils.py", line 154, in split_video
    saved_path = os.path.dirname(save_path)
UnboundLocalError: local variable 'save_path' referenced before assignment

I am using hrnet as 2D detector .

Issue Analytics

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

github_iconTop GitHub Comments

2reactions
zh-pluscommented, Aug 22, 2019

As is said in my README

  1. If you’re using PyCharm, mark ./joints_detectors/Alphapose, ./joints_detectors/hrnet and ./pose_trackers as source root.
  2. If your’re trying to run in command line, add these paths mentioned above to the sys.path at the head of ./videopose.py

The bug is caused by the fact that these paths are not in your sys.path. I’ve updated my code to add them into sys.path manually. You can pull the project and try again.

1reaction
zh-pluscommented, Aug 22, 2019

May caused by the index of cuda devices:

os.environ["CUDA_DEVICE_ORDER"] = "PCI_BUS_ID"  # see issue #152
os.environ["CUDA_VISIBLE_DEVICES"] = "1"

I’m using multi-GPU machine in my environment. Try to change the value of os.environ["CUDA_VISIBLE_DEVICES"] = "1" into “0” in ./videopose.py

Read more comments on GitHub >

github_iconTop Results From Across the Web

15 Most Common Video Errors + How to Fix Them
Issue 3: Missing or Choppy Video · Ensure that you have not tampered with its metadata or deleted its picture component while using...
Read more >
20 most common video errors & how to fix them
This article guide you how to fix all 20 problems or errors while playing videos like playback errors, audio video sync, issues, choppy, ......
Read more >
Troubleshoot audio or video issues with uploads on YouTube
If you're having problems with the audio or video of your upload, try these troubleshooting steps to solve the issue.
Read more >
Video SDK problem when creating session (playing with ...
I have started learning Video SDK and have failure in creating session. When I run the sample program and create the session, ...
Read more >
"The file could not be read. It may be corrupt or not licensed ...
Live Versions: All; Operating System: All. This error message may appear in Live's status bar when trying to load certain audio files, video...
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