varungupta31 / dashcam_anonymizer

Code to Blur Human Faces and Vehicle License Plates in Video and Images using a SoTA Object Detection model YOLOv8
MIT License
29 stars 4 forks source link

list index out of range #6

Closed rampallishyam closed 10 months ago

rampallishyam commented 11 months ago

Traceback (most recent call last): File "C:\Users\rampa\Documents\LocalFiles\Learning\CV algorithm\dashcam_anonymizer\blur_videos.py", line 45, in videos = sorted(glob.glob(f"{config['videos_path']}/*.mp4"), key=sort_videos) File "C:\Users\rampa\Documents\LocalFiles\Learning\CV algorithm\dashcam_anonymizer\blur_videos.py", line 43, in sort_videos return int(item.split("/")[1].replace(".mp4","")) IndexError: list index out of range

varungupta31 commented 11 months ago

Is this being followed? The blur_videos.py script currently expects the videos to be named numerically [1.mp4, 111.mp4] as in the readme?

rampallishyam commented 11 months ago

my video file name 1.mp4. Still the same error. image

rampallishyam commented 10 months ago

Hi, as I was unable to debug this error, I have developed my own code and trained my own model. You can find my work here: https://github.com/rampallishyam/PIIMask. Thanks for your support initially, anyway.

varungupta31 commented 10 months ago

Got busy...Hmm. It seems like a directory structure issue. the split 'extracts' the pat, expecting 1st index.

Glad you got something working.

varungupta31 commented 10 months ago

Good idea to check if the config file contains the right folder path, and then some workaround for Windows mentioned in https://github.com/varungupta31/dashcam_anonymizer/issues/7