Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

10 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ•΅οΈ Deepfake & AI-Generated Face Detection

A deep learning system that detects deepfake and AI-generated facial images using a fine-tuned Xception CNN model trained on 100,000 images.

πŸ† Results

Metric Score
Test Accuracy 99%
AUC-ROC Score 0.9992
F1-Score 0.99
Precision (Fake) 0.99
Recall (Fake) 0.98

πŸ—οΈ Model

  • Architecture: Xception (Transfer Learning from ImageNet)
  • Fine-tuned: Top 20 layers unfrozen
  • Dataset: 140k Real and Fake Faces (Kaggle)
  • Training: Kaggle Notebooks β€” Tesla T4 x2 GPU
  • Epochs: 13 (early stopping)
  • Optimizer: Adam (lr=1e-4)

πŸš€ Run Locally

# Clone
git clone https://github.com/YOUR_USERNAME/DetectFake.git
cd DetectFake

# Install
pip install -r requirements.txt

# Run
streamlit run app.py

On first run, the model (~100MB) downloads automatically from Google Drive.

πŸ“ Structure

DetectFake/
β”œβ”€β”€ app.py            # Streamlit web application
β”œβ”€β”€ requirements.txt  # Dependencies
└── README.md

πŸ› οΈ Tech Stack

  • Python, TensorFlow/Keras, Xception CNN
  • Streamlit, OpenCV, NumPy, PIL
  • Trained on Kaggle (Tesla T4 GPU)

πŸ“š Honours Project

Built as part of a Bachelor of Engineering (Honours) in Computer Science, 2025-2026.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages