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.2.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.2-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: towhee-deepfake-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 38f658a3563d7d34eb8cc08e2647e712184e71b657919103c2a7df1ac3c3c12d
MD5 fc3cf41f9ac1262be614b8e1325b525f
BLAKE2b-256 47913ad513331775bcee4ae9f675ed3df1562da549d6d70d5ea15d16c518fe19

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for towhee_deepfake-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 ffa3388e8c39dae5573fc64135b6fcac232a618671e3adcc90ba9b114b0b437a
MD5 2b7dc1785964dbf6d5d3816806738b49
BLAKE2b-256 4e35ca0d0f616ec503fd02c2fac68150dcc838bc7ccec4f736bd8b54f59beaee

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