| --- |
| title: Facial Keypoints Detection |
| emoji: π |
| colorFrom: red |
| colorTo: red |
| sdk: docker |
| app_port: 8501 |
| tags: |
| - streamlit |
| pinned: false |
| short_description: Streamlit template space |
| --- |
| |
| # π§ Facial Keypoints Detection |
|
|
| A Streamlit application that predicts facial keypoints using a trained ResNet model. |
|
|
| --- |
|
|
| ## π What this app does |
|
|
| - Upload a face image |
| - Converts image to grayscale |
| - Resizes to 96x96 |
| - Predicts facial keypoints (eyes, nose, mouth, etc.) |
| - Visualizes the keypoints directly on the image |
|
|
| --- |
|
|
| ## πΌ Example Workflow |
|
|
| 1. Upload a front-facing face image |
| 2. Model predicts keypoints |
| 3. Red dots appear on facial landmarks |
|
|
| --- |
|
|
| ## π Model |
|
|
| - Architecture: ResNet-based CNN |
| - Input shape: 96x96 grayscale |
| - Output: (x, y) coordinates for facial landmarks |
| - Loss used during training: MSE |
|
|
| --- |
|
|
| ## π Tech Stack |
|
|
| - Streamlit |
| - TensorFlow / Keras |
| - NumPy |
| - Matplotlib |
| - Pillow |
|
|
| --- |
|
|
| ## π Run locally |
|
|
| ```bash |
| pip install -r requirements.txt |
| streamlit run src/streamlit_app.py |
| |