Deep Fake Detection Project
Project description
Deep Fake Detection Package
Abstract
This project Deepfakes can distort our perception of the truth and we need to develop a strategy to improve their detection. Deep Fakes are increasingly detrimental to privacy, social security, and democracy. We plan to achieve better accuracy in predicting real and fake videos..
Instructions to Install our Deep Fake Detection Package
- Install:
pip install Deep-Fake-Detection
- Download the Finetunned Model Weights
import gdown
ResNextModelURL = 'https://drive.google.com/uc?id=1siAcM9uTEoLEeqKFxq5h-hjs4NoHS0SU'
XcePtionModelURL = 'https://drive.google.com/uc?id=1--68J6Ipny937AFjJ_AKjhFXFnvnGecV'
ResNextModel = 'resnext.pth'
XcePtionModel = 'xception.pth'
gdown.download(ResNextModelURL, ResNextModel, quiet=False)
gdown.download(XcePtionModelURL, XcePtionModel, quiet=False)
- Import the DeepFake_Utils from deepfake_detection :
from deepfake_detection import DeepFake_Utils
- Detect Detect the video is fake or not by Ensemble ResNext and Inception Custom Models :
# Run the Below Function by Input your Video Path to get the outPutVideo with Label Fake on Real on it
DeepFake_Utils.Inference_on_video(OutputVideoPath,InputVideoPath)
# Show the Video
VideoFileClip(OutputVideoPath, audio=False, target_resolution=(300,None)).ipython_display()
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Deep Fake Detection-0.0.6.tar.gz
(780.7 kB
view details)
Built Distribution
File details
Details for the file Deep Fake Detection-0.0.6.tar.gz
.
File metadata
- Download URL: Deep Fake Detection-0.0.6.tar.gz
- Upload date:
- Size: 780.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53320f0837163ba27b1936bd05201616a4c7bfd36cbe4feb4d3a4460929e271d |
|
MD5 | 053e7196f7c03d6751b30b4de3b6f6cb |
|
BLAKE2b-256 | 2c13ec72033ae8b1264f065554f2bc8d48734a51bb0eb915fa456997743abd4d |
Provenance
File details
Details for the file Deep_Fake_Detection-0.0.6-py3-none-any.whl
.
File metadata
- Download URL: Deep_Fake_Detection-0.0.6-py3-none-any.whl
- Upload date:
- Size: 780.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.7.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b970ffa49a3f06a4d6d36fe1c8e22968ec01e9a5a7f81de151b16a9693ddd21f |
|
MD5 | 05d409fad0ac757540fce0a70a5ba607 |
|
BLAKE2b-256 | 15a1f301b2b07420f2b4195f614a81be6b1465180a9509431a4b04c75c956404 |