https://github.com/zhreyu/realtime-deepfake-detection
This project is a real-time deepfake detection system implemented in PyTorch. Deepfakes are manipulated videos or images that use artificial intelligence to swap faces or modify visual content, often with malicious intent. The goal of this project is to develop a system capable of detecting deepfake videos in real-time.
https://github.com/zhreyu/realtime-deepfake-detection
cnn deepfake deepfake-detection realtime
Last synced: 10 days ago
JSON representation
This project is a real-time deepfake detection system implemented in PyTorch. Deepfakes are manipulated videos or images that use artificial intelligence to swap faces or modify visual content, often with malicious intent. The goal of this project is to develop a system capable of detecting deepfake videos in real-time.
- Host: GitHub
- URL: https://github.com/zhreyu/realtime-deepfake-detection
- Owner: Zhreyu
- License: mit
- Created: 2023-07-30T07:01:00.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-31T13:00:01.000Z (over 1 year ago)
- Last Synced: 2025-03-29T10:22:52.592Z (about 1 month ago)
- Topics: cnn, deepfake, deepfake-detection, realtime
- Language: Python
- Homepage:
- Size: 12.7 KB
- Stars: 20
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Realtime-Deepfake-Detection
This project is a real-time deepfake detection system implemented in PyTorch. Deepfakes are manipulated videos or images that use artificial intelligence to swap faces or modify visual content, often with malicious intent. The goal of this project is to develop a system capable of detecting deepfake videos in real-time.
# Requirements
Python 3.x
PyTorch
OpenCV (cv2)
facenet-pytorch
pytorch-grad-cam
# Installation
Clone the repository to your local machine:
```bashgit clone https://github.com/Zhreyu/Realtime-Deepfake-Detection.git
```
Change directory to the cloned repository:
```bashcd Realtime-Deepfake-Detection
```
Install the required Python packages using pip:
```bashpip install -r requirements.txt
```
Download the InceptionResnetV1 checkpoint file and place it in the root directory of the repository.# Usage
To run the real-time deepfake detection on the video, execute the following command:```bash
python video_detection.py
```
The program will process each frame of the video, detecting faces and applying the deepfake detection algorithm. The results will be displayed in a window showing the original video with bounding boxes around the detected faces and labels indicating whether they are real or deepfake. Press 'q' to exit the program.# Additional Notes
The deepfake detection model uses the InceptionResnetV1 architecture pretrained on the VGGFace2 dataset. You can experiment with different models or custom architectures by modifying the code in deepfake_detection.py.The face detection is performed using the Haar Cascade classifier and the MTCNN face detector. You can explore other face detection methods to see how they perform in this context.
The project is meant for educational and experimental purposes and should not be used for production-grade applications without further fine-tuning and validation.