Closed graebec closed 9 months ago
Path and file name issues.
Currently the videos would need to be named numerically 1.mp4 2.mp4
And thus the script does an int
call assuming the number, and sorts the videos to be processed in that order.
What is the exact path of the videos you have?
A quick fix would be to change
L45 videos = sorted(glob.glob(f"{config['videos_path']}/*.mp4"), key=sort_videos)
to
videos = sorted(glob.glob(f"{config['videos_path']}/*.mp4"))
And if the videos are not in the videos folder inside the repo,
change
L46 videos = [int(item.split("/")[1].replace(".mp4", "")) for item in videos]
to
videos = [int(item.split("/")[-1].replace(".mp4", "")) for item in videos]
I can see how this is problematic, occupied ATM, will fix things soon.
Hi there, after the predictions finished I receive the following error :
Any Idea what causes this ?
Best Regards