Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fail to run demo_video.py #9

Closed
zxie-bdai opened this issue Mar 25, 2024 · 4 comments
Closed

fail to run demo_video.py #9

zxie-bdai opened this issue Mar 25, 2024 · 4 comments

Comments

@zxie-bdai
Copy link

Hi,

I am trying to run the demo code with

python demo_video.py --input_video example_data/videos/breakdancing.mp4 --out_folder demo_out/videos

But I got the following error:

[2024-03-25 17:39:30,875][phalp.trackers.PHALP][INFO] - Setting up Visualizer...
[2024-03-25 17:39:31,824][phalp.trackers.PHALP][INFO] - Setting up DeepSort...
[2024-03-25 17:39:31,825][phalp.trackers.PHALP][INFO] - Saving tracks at : demo_out/videos/phalp_out/breakdancing/results/breakdancing
list index out of range
Traceback (most recent call last):
File "miniconda3/envs/score_hmr/lib/python3.10/site-packages/phalp/trackers/PHALP.py", line 174, in track
list_of_shots = self.get_list_of_shots(list_of_frames)
File "miniconda3/envs/score_hmr/lib/python3.10/site-packages/phalp/trackers/PHALP.py", line 610, in get_list_of_shots
if(isinstance(list_of_frames[0], str)):
IndexError: list index out of range

Any help is appreciated! Thanks.

@statho
Copy link
Owner

statho commented Apr 1, 2024

There seems to be an issue when loading the extracted frames from the input video. Can you check the content of list_of_frames?

@statho statho closed this as completed Apr 18, 2024
@gokcergun
Copy link

Hi, I have the same error, and yes the list_of_frames return empty. How can I fix it?
By the way, I had also an import error related to neural_renderer. I fixed it by changing the line

#phalp_tracker = HMR2_4dhuman(cfg)
phalp_tracker = PHALP_Prime_HMR2(cfg)
as explained here: #7

@Mudhdhoo
Copy link

Did anyone find a fix for this?

@statho
Copy link
Owner

statho commented May 25, 2024

Probably the frames from the video are not extracted or extracted in the wrong directory, that is why list_of_frames is empty. For the provided video, the extracted frames should be in demo_out/videos/images/breakdancing/. Can you verify that the images are indeed extracted in that directory?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants