This repository contains the implementation of AVT2-DWF method proposed in the paper
Links: [PDF]
- torch
-
Data directory
/data/real/{videoname}.mp4 /daata/fake/{videoname}.mp4
-
Once the videos have been placed at the above mentioned paths, run
python pre-process.py --out_dir train
andpython pre-process.py --out_dir test
for pre-processing the videos. -
After the above step, you can delete
pyavi
,pywork
,pyframes
andpycrop
directories undertrain
andtest
folders. (Do not deletepytmp
folder please!) -
Collect video paths in csv files by running
python write_csv.py --out_dir .
command.
Thanks to the code available at https://github.com/abhinavdhall/deepfake/tree/main/ACM_MM_2020
python all_process.py --out_dir "train dataset path" --gpu 1 --resume false
python all_process.py --test /checkpoints --out_dir "test dataset path"