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 479 forks source link

Getting error in extract_features.py #143

Open preetigupta010203 opened 4 years ago

preetigupta010203 commented 4 years ago

Hi, I ran the 1_move_files.py and 2_extract_files.py successfully. after that, I tried running the extract_features.py, it gives me the following error

File "C:\Users\Preeti Gupta\Downloads\five-video-classification-methods-master\data.py", line 81, in get_classes if item[1] not in classes:

IndexError: list index out of range

JGL22 commented 4 years ago

Using TensorFlow backend. Traceback (most recent call last): File "extract_features.py", line 25, in data = DataSet(seq_length=seq_length, class_limit=class_limit) File "C:\Users\jg2020\anaconda3\envs\tfgpu1\Lib\site-packages\tensorflow\models\data.py", line 50, in init self.classes = self.get_classes() File "C:\Users\jg2020\anaconda3\envs\tfgpu1\Lib\site-packages\tensorflow\models\data.py", line 82, in get_classes if item[1] not in classes: IndexError: list index out of range

I have same error when running the extract_features.py Can anyone explain about the "classes"?

farhantandia commented 4 years ago

I also have this issue. how you handle it guys @JGL22 @preetigupta010203 ??

hyuDev commented 3 years ago

check your data/data.csv. right format csv have not empty line(row) if your csv file have empty row, change open("path","w") to open("path","w",newline="\n")