Skip to main content

Deepfake

Project description

Deepfake

author: Zhuoran Yu


Description

Deepfake techniques, which present realistic AI-generated videos of people doing and saying fictional things, have the potential to have a significant impact on how people determine the legitimacy of information presented online.

This operator predicts the probability of a fake video for a given video.This is an adaptation from DeepfakeDetection.


Code Example

Load videos from path '/home/test_video' and use deepfake operator to predict the probabilities of fake videos.

import towhee
(
    towhee.glob['path']('/home/test_video')
          .deepfake['path', 'scores']()
          .select['path', 'scores']()
          .show()
)
[0.9893, 0.9097]

Interface

A deepfake operator takes videos' paths as input. It predicts the probabilities of fake videos.The higher the score, the higher the probability of it being a fake video.(It can be considered to be a fake video with score higher than 0.5)

Parameters:

filepath: str

Absolute address of the test videos.

Returns: list

The probabilities of videos being fake ones.

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

towhee-deepfake-0.0.3.tar.gz (11.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

towhee_deepfake-0.0.3-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file towhee-deepfake-0.0.3.tar.gz.

File metadata

  • Download URL: towhee-deepfake-0.0.3.tar.gz
  • Upload date:
  • Size: 11.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.13

File hashes

Hashes for towhee-deepfake-0.0.3.tar.gz
Algorithm Hash digest
SHA256 4af3063cc3debe83a049271d5599eb4154ebb57dc21123b73d9d32676a0a4d11
MD5 326e648f56317c2215b475a94bd96f40
BLAKE2b-256 12c687bdff58c5d3c7789b0642c38aaed4d0204f6f39d1fd0f589c2aedb2bd10

See more details on using hashes here.

File details

Details for the file towhee_deepfake-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for towhee_deepfake-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 22ad352c97a252a1c8c21e3c1334ca1b8d0e2ecb8a4987268ccb275e4db32447
MD5 7573309aed125c1429ea13f44019a4a1
BLAKE2b-256 cd5d29afa1130ae3ba290e4210cbd5a12c7df5ab05acd101793f5993359a6592

See more details on using hashes here.

Supported by

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