找到相似的明星脸
Find the most similar star
search for similar stars
Requirements
- Python 3.8
- pymongo
- requests
- beautifulsuop4
- dlib
- face_recognition
- pillow
- TensorFlow
- elasticsearch
- flask
- flask_cors
Installation
pip install -r requirement.txt
- Pre-trained weights of model
Google Drive
move Pre-trained weights into
./process
- Increase the number of elasticsearch's vector dims to 4096 baidu password:4l0i
- MongoDB MongoDB
Launch MongoDB and create datebase named similar_star_db with collection named star
//cd ./crawler
python ./star_crawler.py
python ./download_image.py
Ensure your ElasticSearch support 2622-dimension vector
Launch ElasticSearch.bat
//cd ./process
python ./index_create.py
python ./feature_extract.py
//cd ./backend
python ./main.py
cd ./web
project setup
npm install
Compiles and hot-reloads for development
npm run serve