File size: 1,929 Bytes
e9c6137
c4933b3
e9c6137
 
 
 
 
 
 
c4933b3
 
378936a
e9c6137
77dec95
72751da
 
 
 
 
 
 
 
 
 
8b52758
 
 
72751da
8b77400
72751da
8b77400
8b52758
 
72751da
8b77400
72751da
 
 
 
 
 
 
 
8b52758
72751da
 
 
 
8b77400
72751da
8b52758
 
 
 
 
8b77400
72751da
 
 
 
77dec95
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
---
title: Face Recognition
emoji: 🖼
colorFrom: purple
colorTo: red
sdk: gradio
sdk_version: 5.0.1
app_file: app.py
pinned: false
license: mit
short_description: Trained model to recognize faces
startup_duration_timeout: 2h
---

---
license: mit
---

# Face Recognition Model
"CSSE416-final-project/face-recognition" is the Hugging Face (HF) repository for the Face Recognition Application. It runs the HF faceRecogModel


## Files
- app.py
  - App code to take-in an image, process it, feed it into the model, and format its outputs.
- face_detection.py
  - Crops group photos into various individual person photos to feed into the model
- celeb_indicies.py
  - List of all the celebrities our model can identify (used to match output index of model to celebrity name)
- dlib-19.24.99-cp310-cp310-linux_x86_64.whl
  - Pre-compiled dlib library needed to use the face-recognition library, which identifies and extracts the faces in the images we upload.
- DS_Store
- Arial Bold.ttf
- requirements.txt
  - Standard file used by the HF Space to determine which libraries it needs.

## Datasource
  - Upload your image via camera, clipboard (copy and pasting), or dragging and dropping a picture file into the UI
  - For large scale testing, check out the model itself

## 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:
      - pillow
      - gradio
      - numpy
      - diffusers
      - torchvision
      - torch
      - huggingface_hub
      - typing
      - accelerate
      - invisible_watermark
      - transformers
      - xformers
      - face-recognition

## Running
  - The app runs the model out of the box by simple visiting the URL for the HF Space.
  - Alternatively, if you want to test the model locally, you can download the repo and run "app.py"