Giter Site home page Giter Site logo

temporal-distributed-backdoor-attack-against-video-based-action-recognition's Introduction

TDBA-VAR

Codes for the paper "Temporal-Distributed Backdoor Attack Against Video Based Action Recognition".

Requirements

pip install -r requirements.txt

Dataset

We used the UCF101 dataset for our project. Put the data to 'UCF-101-imgs'.

Run

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

temporal-distributed-backdoor-attack-against-video-based-action-recognition's People

Contributors

lixi1994 avatar

Watchers

 avatar

temporal-distributed-backdoor-attack-against-video-based-action-recognition's Issues

i3d model problem

There are some problems with I3D model below.

  1. Model avgpool(x) in line 439 (/src/i3d/i3d.py)
    RuntimeError: input image (T: 4 H: 8 W: 10) smaller than kernel size (kT: 8 kH: 7 kW: 7)

I guess last_duration = int(math.ceil(num_in_frames / 8)) is 8 (kT), and your input is 4.

  1. If I revise the last_duration as 2. The new error message is
    RuntimeError: only batches of spatial targets supported (3D tensors) but got targets of size: : [16]

I guess the size of output from the model is torch.Size([16, 1024, 4, 8, 10]), but targets of size: : [16] incompatible.

So, I3D in your code can not successfully train. If you fix this problem, I will appreciate that.

Could you provide the prerequisite for reproduction?

I'd like to extend my sincere appreciation for your outstanding contributions to this work. I am keenly interested in your work and have been endeavoring to reproduce it in my project, but have encountered some difficulties.

Could you provide the necessary guidance or share the required environment settings and dependencies? For instance, please share the package (requirement.txt) and dataset download links used in your work. In addition, if you could provide the folder structure, it would greatly assist me in my endeavors.

Furthermore, if you have any insights or tips on how to effectively tackle this issue, I would be immensely grateful.

Thank you once again for your remarkable efforts.

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.