Attendance-using-Face icon indicating copy to clipboard operation
Attendance-using-Face copied to clipboard

trainer.py not running

Open AbdullahAlfayez opened this issue 6 years ago • 4 comments

It shows errors when I try to run the trainer file. Could you please help? I am trying to run it on windows 10

AbdullahAlfayez avatar Aug 22 '19 13:08 AbdullahAlfayez

What is the error?

satinder147 avatar Sep 20 '19 05:09 satinder147

It shows error while running on Ubuntu18.04

Traceback (most recent call last): File "trainer.py", line 34, in y_data.append(int(x[-1])) ValueError: invalid literal for int() with base 10: 'i'

abeepathak96 avatar Oct 19 '19 11:10 abeepathak96

The error I think is that you have not correctly named the directories as mentioned in the readme. The label of the class is taken from the folder which has the images. If you will not insert a number in the end, it would raise an error.

satinder147 avatar Oct 21 '19 07:10 satinder147

Thank you for the advise.

AbhishekP-Ai avatar Oct 21 '19 08:10 AbhishekP-Ai