harvitronix / five-video-classification-methods

Code that accompanies my blog post outlining five video classification methods in Keras and TensorFlow
https://medium.com/@harvitronix/five-video-classification-methods-implemented-in-keras-and-tensorflow-99cad29cc0b5
MIT License
1.18k stars 478 forks source link

list index out of range error on Windows 10, Python #117

Open Sharma-Prachi opened 5 years ago

Sharma-Prachi commented 5 years ago

Hi! I am not able to go through this error. Traceback (most recent call last): File "1_move_files.py", line 81, in main() File "1_move_files.py", line 78, in main move_files(group_lists) File "1_move_files.py", line 49, in move_files filename = parts[1] IndexError: list index out of range

I have tried every suggestion to solve it in other similar issues. I tried parts = video.split('\'). but didn't change a thing. I have all the files in the same directory I am working in. I tried installing ffmpeg but it also didn't help.

I am working on Windows 10 and Anaconda. Please help me solve this issue as I am not able to code further.

Thanks in advance!

Sharma-Prachi commented 5 years ago

I was trying to solve the issue in python command line but now I tried the code on Jupyter notebook and wrote: parts = video.split('/')

The code is working properly now.

ElliotWood commented 5 years ago

Change it to parts = os.path.split(video)