megvii-research / CADDM

Official implementation of ID-unaware Deepfake Detection Model
Apache License 2.0
135 stars 19 forks source link

Request for Dedicated Inference Script for Individual Video Files and Guidance on Usage #11

Open hellogeraldblah opened 1 year ago

hellogeraldblah commented 1 year ago

Hello,

Is there a script available for running inference on individual video files, separate from evaluating datasets using test.py?

Currently, test.py relies heavily on DeepfakeDataset and requires the use of a dataset for evaluation. I would like to request a dedicated script for running inference on individual video files or perhaps some guidance on how to proceed.

For instance, it would be helpful to have an inference script that can be executed using the following command: python3 test.py test_video.mp4 --config caddm_test.cfg

and output to be:

Inference results for test_video.mp4:
Frame predictions: [0.823, 0.567, 0.912, 0.187, ...]
Average prediction: 0.654

Are there any plans for this?

KenChen701 commented 1 year ago

Hi, have you figured out this issue? Could you share it with me?