Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Getting error in extract_features.py #143

Open
preetigupta010203 opened this issue Mar 3, 2020 · 3 comments
Open

Getting error in extract_features.py #143

preetigupta010203 opened this issue Mar 3, 2020 · 3 comments

Comments

@preetigupta010203
Copy link

preetigupta010203 commented Mar 3, 2020

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
Copy link

JGL22 commented May 24, 2020

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
Copy link

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

@hyuDev
Copy link

hyuDev commented Mar 25, 2021

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

debvrat added a commit to debvrat/five-video-classification-methods that referenced this issue Mar 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants