File size: 1,920 Bytes
65ddbf7
 
 
 
 
0ecd572
65ddbf7
 
 
67e90bf
9081ec6
67e90bf
9081ec6
67e90bf
 
9081ec6
3ff3e55
72c3460
8399174
3ff3e55
8399174
 
 
 
 
 
9081ec6
65ddbf7
 
 
 
c193e24
 
 
 
65ddbf7
 
3ff3e55
65ddbf7
3ff3e55
 
8399174
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
---
license: mit
---

# Face Recognition Model
"CSSE416-final-project/faceRecogModel" is the Hugging Face (HF) repository we deployed the final, fully trained facial recognition model to. Checkout the HF Space "CSSE416-final-project/faceRecogModel" to easily test and play around with the model.


## Files
- modelWeights101.bin
  - Weights of model we created by training on Gebru servers
- app.py, model.py, and config.json
  - Standard files used by Hugging Face to setup the architecture of the model in conjunction with the weights
- updateHFtemplate
  - Used this file to update the above files in the Hugging Face repository
  - The weights file did not update properly using standard Git, so we used Hugging Face Hub with this file to properly update the repo
    - Could also use Git LFS instead.
  - You will need a personal access token to use the file. Mine has been removed for security purposes.
- testModelWeights.ipynb
  - Converts the weights file into the model.
  - Test the model on a dataset

## Dataset
  - testData
    - Folder of images with names of the subfolders representing classes that can easily be used
    - Change the contents of this folder, or specify a new filepath, to run your custom dataset
    

## Neccessary Package
  - Since the model all runs on Hugging Face, you don't need to install any packages.
  - However, if you do want to run the model locally, you will need to install these following packages:
      - torch
      - numpy
      - torchvision
      - huggingface_hub

## Running
  - You can run this model using the Hugging Face Space: CSSE416-final-project/faceRecogModel.
    - You can upload images through the Space UI.
  - Alternatively, if you want to test the model locally, you can download the repo and run "testModelWeights.ipynb."
    - You can run the notebook on CoLab as well, if you change the dataset reference to be a filepath on your computer.