logo
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Readme
Files and versions

Updated 4 years ago

towhee

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.

from towhee import ops
deepfake = ops.deepfake()
pred = deepfake('/home/test_video')
print(pred)
[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.

dreamfireyu 13c1dcaea3 update 9 Commits
folder-icon weights update 4 years ago
file-icon .gitattributes
1.2 KiB
download-icon
update 4 years ago
file-icon README.md
1.2 KiB
download-icon
update 4 years ago
file-icon __init__.py
592 B
download-icon
update 4 years ago
file-icon classifiers.py
12 KiB
download-icon
update 4 years ago
file-icon deepfake.png
53 KiB
download-icon
update 4 years ago
file-icon deepfake.py
2.5 KiB
download-icon
update 4 years ago
file-icon kernel_utils.py
15 KiB
download-icon
update 4 years ago
file-icon requirements.txt
102 B
download-icon
update 4 years ago