this project was modify from this project: https://github.com/Entropy-xcy/RankFace
apt-get install python-dev python-pip -y
git clone https://github.com/Entropy-xcy/RankFace
cd ./RankFace
pip install -r requirements.txt
apt-get install python-opencv
keras
cv2/PIL(use PIL,都是泪,因为python3没装上opencv,自己测试时间太紧,要是有opencv就不用将face_detection单独拆分出来记录到list.txt中了……)
numpy
sklearn
label.csv 手动给每一张图片打分
python resize_image.py ./data/train_data/ ./data/train_face/ #将train_data进行缩放,
python face_detection_cv.py ./data/train_face/ list1.txt #将train_face中的脸部定位进行记录,输出到文件保存
#使用keras对模型进行训练, 因为只是测试一下这个project是否好用,so没有新增图片。
/home/hmx/neural-enhance-master/python-3.4/bin/python3 ./train2.py ./data/train_face/ ./list1.txt
#如果需要新增图片,则也需要在label.csv中增加该图片的分类信息,并重新使用train进行训练。
python resize_image.py ./data/test_data/ ./data/test_face/
python face_detection_cv.py ./data/test_face/ ./list1.txt
#load_model,并进行输出
/home/hmx/neural-enhance-master/python-3.4/bin/python3 test2.py ./data/train_face/ ./list1.txt
the mode and images are uploaded:
http://pan.baidu.com/s/1boKItEf password: bkii