Face Scorer 是個臉部評分系統,由於每個人的審美觀不同,網路上現有的臉部評分器只能透過通俗的眼光給予評分,並不是按照個人喜好,因此 Face Scorer 透過 Line Bot 實現伊人一model 自己訓練屬於自己的臉部評分器,使用我要看女/男生
,Line Bot 會自動上網抓10張男/女生照片,依照使用者給的分數建構資料集,在使用請你看仔細
來訓練模型,完成屬於自己的臉部評分器,最後只要上傳想評分的照片即可。
- 我要看女生/女生(Get 10 pictures of training date)
- 請你看仔細(Train model)
- upload image to get the Score
ResNet18
You can see how to use Face recognition in this repo
You can find the document in this repo
- Login Imgur
- go to setting > Applications
- create new Application
- get Client ID and Client secret
- run imgurfile.getauthorize
- check your pin code on the display URL
- type pin code to get access and refresh token
- Write
Client ID
,Client secret
,access token
,refresh token
on the top ofimgurfile.py
- 登入自己帳號
- 創建Message API
- 進入 Messaging API 設定
- Use webhook
- 回應模式:聊天機器人
- 加入好友歡迎訊息:停用
- 自動回應訊息:停用
- secret_key : Basic setting -> Channel secret
- channel_access_token:Messaging API -> Channel access token
Use ngrok to setup a local server
- download ngrok
- cd to ngrok.exe Folder
- 輸入cmd
ngrok http 5000 -region ap
- copy https url and paste to Website of Messaging API -> webhook settings
Don't use pip or conda to install dlib
- download whl file in https://pypi.org/simple/dlib/
- pip install
whl file path
You should install dlib first
and type pip install face_recognition
in cmd
pip install -r requirements.txt
python=3.6
Pillow=5.3.0
cmake
dlib
face_recognition
imgurpython
pytorch
line-bot-sdk
flask