FaceRecognition / data_preprocess.py
datnguyentien204's picture
6797ab7cc662a6915657900b76bbadf3d8ccd13b941db166ca7352788794f756
03b1ce7 verified
raw
history blame
348 Bytes
from preprocess import preprocesses
input_datadir = './train_img'
output_datadir = './aligned_img'
obj=preprocesses(input_datadir, output_datadir)
nrof_images_total, nrof_successfully_aligned=obj.collect_data()
print('Total number of images: %d' % nrof_images_total)
print('Number of successfully aligned images: %d' % nrof_successfully_aligned)