Skip to main content

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

  1. Install:
pip install Deep-Fake-Detection
  1. 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)
  1. Import the DeepFake_Utils from deepfake_detection :
from deepfake_detection import DeepFake_Utils
  1. 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.9.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

Deep_Fake_Detection-0.0.9-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file Deep Fake Detection-0.0.9.tar.gz.

File metadata

  • Download URL: Deep Fake Detection-0.0.9.tar.gz
  • Upload date:
  • Size: 16.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

Hashes for Deep Fake Detection-0.0.9.tar.gz
Algorithm Hash digest
SHA256 afafa8cafaebf7f153c3082c7d5d22d16f101e2f4aaee7da3661e69c465b314a
MD5 f7c6c87f37c6aa9f692d7ba45d5ee912
BLAKE2b-256 5895bba8f090cff74247044640e8d46ebae87c9affc765a3ad449e07ec6b0c63

See more details on using hashes here.

Provenance

File details

Details for the file Deep_Fake_Detection-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: Deep_Fake_Detection-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 17.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

Hashes for Deep_Fake_Detection-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 069a6420b5aa2d2a90a6b6a06b065cbca443dee59d2fcd488f00a46f0d86047a
MD5 a5b26d6f3372ee6dd6e5631900ead928
BLAKE2b-256 fb6599bfe5d96d44b49fec1d2b447ed6351cfeb7c079027c0acba64db67ea956

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page