How ytashan/deepfake-image-detection works
This repository is an educational deepfake-image classifier implemented in a Kaggle/Jupyter notebook. Its documented workflow prepares CIFAKE images, trains an EfficientNetB0-based binary classifier, fine-tunes the backbone, saves the best validation-AUC checkpoint, and evaluates it; the saved model also supports individual and folder predictions. The README documents optional evaluation on a separate deepfake dataset and the model’s architecture and metrics. No notebook source was provided, so relationships below reflect README statements only; the alternate notebook’s role is unclear.
Components 16
Data preparation
- Image generators
- Image augmentation
Classifier
- EfficientNetB0
- Classification head
Training and evaluation
- Initial training
- Fine-tuning
- Best-model checkpoint
- Performance evaluation
- Evaluation metrics
Prediction
- Single-image prediction
- Folder prediction
- Real/fake result
Other components
- Notebook user
- CIFAKE dataset
- Deepfake dataset
- Alternate notebook
deepfake-image-final.ipynb
Connections 16
- CIFAKE dataset → Image generators: supplies images
README.md - Image generators → Image augmentation: augments images
README.md - Image generators → Initial training: provides training data
README.md - EfficientNetB0 → Classification head: extracts features for
README.md - Initial training → EfficientNetB0: trains classifier
README.md - Initial training → Fine-tuning: continues as
README.md - Fine-tuning → Best-model checkpoint: saves best model
README.md - CIFAKE dataset → Performance evaluation: supplies test images
README.md - Deepfake dataset → Performance evaluation: supports optional evaluation
README.md - Performance evaluation → Evaluation metrics: calculates metrics
README.md - Notebook user → Single-image prediction: requests prediction
README.md - Best-model checkpoint → Single-image prediction: loads model for
README.md - Notebook user → Folder prediction: requests batch
README.md - Best-model checkpoint → Folder prediction: loads model for
README.md - Single-image prediction → Real/fake result: returns label and score
README.md - Folder prediction → Real/fake result: returns predictions
README.md