Facenet-Real-time-face-recognition-using-deep-learning-Tensorflow icon indicating copy to clipboard operation
Facenet-Real-time-face-recognition-using-deep-learning-Tensorflow copied to clipboard

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

Open abhishek11cse134 opened this issue 6 years ago • 2 comments

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

abhishek11cse134 avatar Dec 26 '18 10:12 abhishek11cse134

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

DineshRajanT avatar Mar 23 '20 07:03 DineshRajanT

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

shankarvishnu avatar May 22 '20 10:05 shankarvishnu