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

3.9 KiB

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.dc2 import pipe, ops, DataCollection

p = (
    pipe.input('path')
        .map('path', 'scores', ops.towhee.deepfake)
        .output('scores')
)

DataCollection(p('./deepfake_video/test/aagfhgtpmv.mp4').get_dict()).show()
[0.99]


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.

# More Resources

- [Vector Search and RAG - Balancing Accuracy and Context - Zilliz blog](https://zilliz.com/blog/vector-search-and-rag-balancing-accuracy-and-context): In this article, we cover AI Hallucinations and how RAG can help solve the issue. Christy demonstrated a great explanation of how building RAG requires careful choices of embedding models, indexes, and semantic search approaches.

3.9 KiB

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.dc2 import pipe, ops, DataCollection

p = (
    pipe.input('path')
        .map('path', 'scores', ops.towhee.deepfake)
        .output('scores')
)

DataCollection(p('./deepfake_video/test/aagfhgtpmv.mp4').get_dict()).show()
[0.99]


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.

# More Resources

- [Vector Search and RAG - Balancing Accuracy and Context - Zilliz blog](https://zilliz.com/blog/vector-search-and-rag-balancing-accuracy-and-context): In this article, we cover AI Hallucinations and how RAG can help solve the issue. Christy demonstrated a great explanation of how building RAG requires careful choices of embedding models, indexes, and semantic search approaches.