GithubHelp home page GithubHelp logo

mrdongdonglin / adversarial-deepfake-detection Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 32.25 MB

Shell 0.13% Python 99.45% PowerShell 0.02% Batchfile 0.03% Makefile 0.05% JavaScript 0.01% TeX 0.05% Jupyter Notebook 0.28%

adversarial-deepfake-detection's Introduction

Train Xception

python3.9 train_xc.py \
--root_path D:\Deepfake\Methods\Deepfake-Detection-master\outputs \
--name xc_celebdfv2 \
--train_list D:\Deepfake\Methods\Deepfake-Detection-master\data_list\CelebDFv2\train.txt \
--val_list D:\Deepfake\Methods\Deepfake-Detection-master\data_list\CelebDFv2\val.txt \
--batch_size 16 \
--epoches 20 \
--model_name xc_celebdf.pkl \
--log_dir D:\Deepfake\Methods\Deepfake-Detection-master\log

Train EfficientNet

python3.9 train_ef.py \
--root_path D:\Deepfake\Methods\Deepfake-Detection-master\outputs \
--name ef_celebdfv2 \
--train_list D:\Deepfake\Methods\Deepfake-Detection-master\data_list\CelebDFv2\train.txt \
--val_list D:\Deepfake\Methods\Deepfake-Detection-master\data_list\CelebDFv2\val.txt \
--batch_size 16 \
--epoches 20 \
--model_name ef_celebdf.pkl \
--log_dir D:\Deepfake\Methods\Deepfake-Detection-master\log

Train XceptionLSTM

python3.9 train_xl.py \
--root_path D:\Deepfake\Methods\Deepfake-Detection-master\outputs \
--name xl_celebdfv2 \
--train_list D:\Deepfake\Methods\Deepfake-Detection-master\data_list\CelebDFv2\train.txt \
--val_list D:\Deepfake\Methods\Deepfake-Detection-master\data_list\CelebDFv2\val.txt \
--batch_size 2 \
--epoches 20 \
--model_name xl_celebdf.pkl \
--log_dir D:\Deepfake\Methods\Deepfake-Detection-master\log \
--frame_num 5

CUDA_VISIBLE_DEVICES=2 python train_xl.py \
--root_path /media/ssddati1/donny/Methods/Deepfake-Detection-master/outputs \
--name xl_celebdfv2 \
--train_list /media/ssddati1/donny/Methods/Deepfake-Detection-master/data_list/CelebDFv2/unpiared/linux_train.txt \
--val_list /media/ssddati1/donny/Methods/Deepfake-Detection-master/data_list/CelebDFv2/unpiared/linux_val.txt \
--batch_size 2 \
--epoches 20 \
--model_name xl_celebdf.pkl \
--log_dir /media/ssddati1/donny/Methods/Deepfake-Detection-master/log \
--frame_num 5

Train EfficientLSTM

python3.9 train_el.py \
--root_path D:\Deepfake\Methods\Deepfake-Detection-master\outputs \
--name el_celebdfv2 \
--train_list D:\Deepfake\Methods\Deepfake-Detection-master\data_list\CelebDFv2\train.txt \
--val_list D:\Deepfake\Methods\Deepfake-Detection-master\data_list\CelebDFv2\val.txt \
--batch_size 2 \
--epoches 20 \
--model_name el_celebdf.pkl \
--log_dir D:\Deepfake\Methods\Deepfake-Detection-master\log

Attack Xception

CUDA_VISIBLE_DEVICES=2 python attack_xc.py \
--test_list /media/ssddati1/donny/Methods/Deepfake-Detection-master/data_list/CelebDFv2/linux_test_attack.txt \
--model_path /media/ssddati1/donny/Methods/Deepfake-Detection-master/outputs/xc_celebdfv2/best.pt \
--path_to_save /media/ssddati1/donny/Datasets/images/attack/xc \
--attack \
--attack_method FGSM \
--save_images \
--confidence 0.0 \
--epsilons 15 \
--steps 40 \
--batch_size 4

Attack EfficientNet

CUDA_VISIBLE_DEVICES=2 python attack_ef.py \
--test_list /media/ssddati1/donny/Methods/Deepfake-Detection-master/data_list/CelebDFv2/linux_test_attack.txt \
--model_path /media/ssddati1/donny/Methods/Deepfake-Detection-master/outputs/ef_celebdfv2/best.pt \
--path_to_save /media/ssddati1/donny/Datasets/images/attack/ef \
--attack \
--attack_method FGSM \
--save_images \
--confidence 0.0 \
--epsilons 15 \
--steps 40 \
--batch_size 4

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.