Skip to content

reevacodes/FaceTective---Face-Authenticity-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

#๐Ÿ•ต๏ธโ€โ™‚๏ธ FaceTective---Face-Authenticity-Detector FaceTective is an AI-powered tool designed to detect deepfake images with high accuracy. By leveraging MobileNetV2 and fine-tuning with custom layers, it classifies whether an uploaded face image is real or fake. The project also features a Streamlit-based web app for easy interaction.

๐Ÿš€ Features

  1. Detects real vs fake images using deep learning.
  2. Built with MobileNetV2 as the backbone + custom classification layers.
  3. Includes data augmentation (rotation, zoom, flipping) for better generalization.
  4. Provides probability scores along with predictions.
  5. Simple Streamlit web interface for uploading and testing images.

๐Ÿ› ๏ธ Tech Stack

  1. Python
  2. TensorFlow / Keras โ€“ Model training & fine-tuning
  3. MobileNetV2 โ€“ Pretrained CNN architecture
  4. NumPy & Matplotlib โ€“ Data handling & visualization
  5. Streamlit โ€“ Web app deployment

๐Ÿ“‚ Project Structure FaceTective/ โ”‚โ”€โ”€ facetective_train.py # Model training script
โ”‚โ”€โ”€ app.py # Streamlit web app
โ”‚โ”€โ”€ facetective_model.h5 # Saved trained model
โ”‚โ”€โ”€ data/ # Dataset (real & fake images)
โ”‚โ”€โ”€ README.md # Project documentation

โš™๏ธ Installation Clone the repository: git clone https://github.com/your-username/FaceTective.git cd FaceTective

Install dependencies: pip install -r requirements.txt

Run the training script (optional, if you want to retrain): python facetective_train.py

Launch the Streamlit app: streamlit run app.py

๐ŸŽฏ Usage

  1. Upload a face image (.jpg, .jpeg, .png).
  2. Model preprocesses and classifies the image.
  3. Get prediction result: Real or Fake + confidence score.

๐Ÿ“Š Model Performance

  1. Architecture: MobileNetV2 + Dense layers + Dropout
  2. Loss Function: Binary Crossentropy
  3. Optimizer: Adam
  4. Metrics Tracked: Accuracy, Precision, Recall, F1-score, ROC-AUC

๐Ÿ”ฎ Future Improvements

  1. Add explainability (Grad-CAM heatmaps).
  2. Support video deepfake detection.
  3. Improve dataset size and diversity.
  4. Explore Vision Transformers (ViT) or XceptionNet for better results.

๐Ÿ“ธ Demo Screenshot

FaceTective Demo

๐Ÿค Contributing Pull requests are welcome! For major changes, please open an issue first to discuss what youโ€™d like to change.

About

FaceTective is a Streamlit-powered web app that detects whether a face image is Real or Fake (Deepfake) using a MobileNetV2 deep learning model.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages