项目作者: JudgementH

项目描述 :
Find the most similar star。找到最相似的明星脸
高级语言: Python
项目地址: git://github.com/JudgementH/similar-star.git
创建时间: 2020-11-09T14:19:59Z
项目社区:https://github.com/JudgementH/similar-star

开源协议:GNU General Public License v3.0

下载


similar-star

找到相似的明星脸

Find the most similar star

project images

image-20201205215315144

search for similar stars

image-20201205215607819

image-20201205215622775

Get start

1) Installation

Requirements

  • Python 3.8
  • pymongo
  • requests
  • beautifulsuop4
  • dlib
  • face_recognition
  • pillow
  • TensorFlow
  • elasticsearch
  • flask
  • flask_cors

Installation

  1. pip install -r requirement.txt

2) Download Resources

  • 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

3) Craw Data

Launch MongoDB and create datebase named similar_star_db with collection named star

  1. //cd ./crawler
  2. python ./star_crawler.py
  3. python ./download_image.py

4) Create Index

Ensure your ElasticSearch support 2622-dimension vector

Launch ElasticSearch.bat

  1. //cd ./process
  2. python ./index_create.py
  3. python ./feature_extract.py

5) Setup Backend

  1. //cd ./backend
  2. python ./main.py

6) Setup Web

  1. cd ./web

project setup

  1. npm install

Compiles and hot-reloads for development

  1. npm run serve