BrandonJoffe / home_surveillance

Home surveillance system with facial recognition
1.22k stars 384 forks source link

unable to train/retrain if csv are empty #24

Closed mathieuduperre closed 5 years ago

mathieuduperre commented 7 years ago

if your labels and reps.csv file are empty (because the retrain process crashed before, leaving them empty) the whole retrain will not work. i'm working at adding a few lines of code to prevent that.

mathieuduperre commented 7 years ago

ok if you want to train the software to know you, i find that using a single picture file through the upload UI does not work. You need more than a single file, they have to be in PNG format (JPG does not work), put them in training-images/whateveryourname and click retrain-database. give it a few minutes as it can be quite slow sometimes. make sure both .csv files, .pkl and and cache.t7 are still there and not empty. Make sure that in aligned-images/ there is a directory with your name and pictures. Note how many pictures are there (vs those you moved yourself). when done it should recognize you. i'm still digging this but seems the learning mechanism is quite picky about which pictures to use. Plus I still get a lot of false positive (i.e. i'm not JONATHAN damn software!).