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

i trained model with 2000 images . but when i run it saying if HumanNames[best_class_indices[0]] == H_i: IndexError: list index out of range #15

Open
abhishek11cse134 opened this issue Dec 26, 2018 · 2 comments

Comments

@abhishek11cse134
Copy link

i trained model with 2000 images . but when i run it saying if HumanNames[best_class_indices[0]] == H_i: IndexError: list index out of range
Result Indices: 1872
HumanNames: ['Akshay Kumar', 'Nawazuddin Siddiqui', 'Salman Khan', 'Shahrukh Khan', 'Sunil Shetty', 'Sunny Deol']
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 193, in _run_module_as_main
"main", mod_spec)
File "/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/runpy.py", line 85, in _run_code
exec(code, run_globals)
File "/Users/abhishekkumar/Downloads/face/test_image.py", line 130, in
if HumanNames[best_class_indices[0]] == H_i:
IndexError: list index out of range

@DineshRajanT
Copy link

How did you train your model?On what architecture and how

@shankarvishnu
Copy link

Follow this comment to run it properly. Perhaps you have forgotten to delete all data from "pre-img" directory before starting the process.

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

3 participants