leandrodevai commited on
Commit
d83ea8a
·
verified ·
1 Parent(s): c628352

Sync from GitHub via hub-sync

Browse files
Files changed (3) hide show
  1. README.md +60 -3
  2. app.py +5 -0
  3. requirements.txt +0 -1
README.md CHANGED
@@ -1,12 +1,69 @@
1
  ---
2
- title: Faceverification
3
- emoji: 📉
4
  colorFrom: blue
5
  colorTo: green
6
  sdk: gradio
7
  sdk_version: 6.14.0
8
  python_version: '3.11'
9
  app_file: app.py
 
10
  pinned: false
11
  license: mit
12
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: Face Verification
3
+ emoji: 🧠
4
  colorFrom: blue
5
  colorTo: green
6
  sdk: gradio
7
  sdk_version: 6.14.0
8
  python_version: '3.11'
9
  app_file: app.py
10
+ short_description: "Face verification demo with FaceNet and VectorDB"
11
  pinned: false
12
  license: mit
13
+ ---
14
+
15
+ # Face Verification
16
+
17
+ AI Engineering Demo project demonstrating an end-to-end face verification workflow with FaceNet embeddings, ChromaDB vector search, and an interactive Gradio interface.
18
+
19
+ The app lets users add known people to a local embeddings database and verify whether a new face image matches one of the stored identities.
20
+
21
+ ## Features
22
+
23
+ - Face detection and preprocessing from uploaded images
24
+ - FaceNet embedding extraction with PyTorch
25
+ - Similarity search with ChromaDB
26
+ - Interactive Gradio UI with add-person and verify-identity flows
27
+ - Hugging Face Spaces deployment-ready structure
28
+
29
+ ## Tech Stack
30
+
31
+ - Python
32
+ - PyTorch
33
+ - FaceNet / facenet-pytorch
34
+ - ChromaDB
35
+ - Gradio
36
+ - Hugging Face Spaces
37
+
38
+ ## Run Locally
39
+
40
+ Using uv:
41
+
42
+ ```bash
43
+ uv sync
44
+ uv run python app.py
45
+ ```
46
+
47
+ Using pip:
48
+
49
+ ```bash
50
+ pip install -r requirements.txt
51
+ python app.py
52
+ ```
53
+
54
+ ## Project Structure
55
+
56
+ ```text
57
+ src/faceverification/
58
+ app.py
59
+ config.py
60
+ core/
61
+ image_processor.py
62
+ vectordb.py
63
+ services/
64
+ face_verification.py
65
+ ```
66
+
67
+ ## Demo Focus
68
+
69
+ This project highlights practical AI engineering skills: model-based feature extraction, vector database integration, application packaging, automated deployment, and a simple user-facing ML interface.
app.py CHANGED
@@ -1,3 +1,8 @@
 
 
 
 
 
1
  from faceverification.app import FV_gr
2
 
3
  if __name__ == "__main__":
 
1
+ import sys
2
+ from pathlib import Path
3
+
4
+ sys.path.insert(0, str(Path(__file__).parent / "src"))
5
+
6
  from faceverification.app import FV_gr
7
 
8
  if __name__ == "__main__":
requirements.txt CHANGED
@@ -1,6 +1,5 @@
1
  # This file was autogenerated by uv via the following command:
2
  # uv export --locked --no-hashes --format requirements.txt --output-file requirements.txt
3
- -e .
4
  aiohappyeyeballs==2.6.1
5
  # via aiohttp
6
  aiohttp==3.13.5
 
1
  # This file was autogenerated by uv via the following command:
2
  # uv export --locked --no-hashes --format requirements.txt --output-file requirements.txt
 
3
  aiohappyeyeballs==2.6.1
4
  # via aiohttp
5
  aiohttp==3.13.5