Determine cosine similarity of a human picture to
git clone https://github.com/whs2k/ImageSimilarity.git
conda activate mxnet
conda install jupyter
onda install -c anaconda pandas requests tqdm pil flask pip
pip install --upgrade mxnet gluoncv
conda install -c conda-forge opencv
cd {insert_path_here}/src
python src/0.2.1-whs-invoSho_yolo.py
- App Initialization (loading of DenseNet Model, YOLO Model, and dataframe of previously vectorized dog photos)
- Human Uploads an Image and is saved to the "Static" folder
- Yolo Model extractts and crops just the "human" portion of uploaded image
- Densenet Model transforms the cropped image to a vector
- Cosine Similarity is calculated for tthe uploaded image vector and all previously vectorized dog photos
- Top three results are returned
- File "data/processed/0.0.6-whs-dogVectors.h5" is managed with Git LFS: https://help.github.com/en/articles/installing-git-large-file-storage