five-video-classification-methods icon indicating copy to clipboard operation
five-video-classification-methods copied to clipboard

Getting error in extract_features.py

Open preetigupta010203 opened this issue 4 years ago • 3 comments

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

preetigupta010203 avatar Mar 03 '20 12:03 preetigupta010203

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"?

JGL22 avatar May 24 '20 12:05 JGL22

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

farhantandia avatar Sep 08 '20 12:09 farhantandia

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")

hyuDev avatar Mar 25 '21 02:03 hyuDev