Readme
Files and versions
Updated 2 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.
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.
haoyuanhuang
fb1a64c7b1
| 1 Commit | ||
---|---|---|---|
__pycache__ | 2 years ago | ||
weights | 2 years ago | ||
.gitattributes |
1.2 KiB
|
2 years ago | |
README.md |
1.2 KiB
|
2 years ago | |
__init__.py |
592 B
|
2 years ago | |
classifiers.py |
12 KiB
|
2 years ago | |
deepfake.png |
53 KiB
|
2 years ago | |
deepfake.py |
2.8 KiB
|
2 years ago | |
kernel_utils.py |
15 KiB
|
2 years ago | |
requirements.txt |
97 B
|
2 years ago |