FaceRecognition / train_main.py
datnguyentien204's picture
6797ab7cc662a6915657900b76bbadf3d8ccd13b941db166ca7352788794f756
03b1ce7 verified
raw
history blame
497 Bytes
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys
from classifier import training
import os
datadir = './aligned_img'
modeldir = './model/20180402-114759.pb'
#modeldir = './model/20170511-185253.pb'
classifier_filename = './class/classifier.pkl'
print("Training Start")
obj=training(datadir, modeldir, classifier_filename)
get_file=obj.main_train()
print('Saved classifier model to file "%s"' % get_file)
sys.exit("All Done")