FaceRecognition / train_main.py
datnguyentien204's picture
Upload folder using huggingface_hub (#1)
f1ce61b 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")