Codes for the paper "Temporal-Distributed Backdoor Attack Against Video Based Action Recognition".
pip install -r requirements.txt
We used the UCF101 dataset for our project. Put the data to 'UCF-101-imgs'.
cd code
Train slowfast model poisoned by DFT based attack
python train_adv.py --attack FFT_slowfast --model_type slowfast
Train s3d/i3d/res2+1d model poisoned by DFT based attack
python train_adv.py --attack FFT_downsample --model_type s3d