Coder Social home page Coder Social logo

xiaofanustc / me-sampler Goto Github PK

View Code? Open in Web Editor NEW
11.0 3.0 4.0 56 KB

[ECCV2020] Motion-excited Sampler: Video Adversarial Attack with Sparked Prior

License: Apache License 2.0

Python 92.35% Shell 7.65%
adversarial-attacks video-models motion-information

me-sampler's Introduction

Motion-Excited Sampler: Video Adversarial Attack with Sparked Prior

This repository contains code for the paper:

Motion-Excited Sampler: Video Adversarial Attack with Sparked Prior

Hu Zhang, Linchao Zhu, Yi Zhu, Yi Yang

[Arxiv] [Slides] [Demo Video]

ReLER, University of Technology Sydney, NSW; Amazon Web Services

Abstract

Deep neural networks are known to be susceptible to ad- versarial noise, which is tiny and imperceptible perturbations. Most of previous work on adversarial attack mainly focus on image models, while the vulnerability of video models is less explored. In this paper, we aim to attack video models by utilizing intrinsic movement pattern and regional relative motion among video frames. We propose an effective motion- excited sampler to obtain motion-aware noise prior, which we term as sparked prior. Our sparked prior underlines frame correlations and uti- lizes video dynamics via relative motion. By using the sparked prior in gradient estimation, we can successfully attack a variety of video clas- sification models with fewer number of queries. Extensive experimental results on four benchmark datasets validate the efficacy of our proposed method.

Requirements:

Dataset

Something-Something v2: video is split into frames by video2frames.py and change the path in run_smth_i3d.sh.

Attacked models

We use existing I3D and TSN2D models from gluoncv, download [here]. You can replace this part with other models.

Mpeg video generation

When use coviar to extract motion vector, first convert original video to mpeg format:

run bash reencode_smth_smth.sh.

Attacking

run bash run_smth_i3d.sh or bash run_smth_tsn.sh

Reminder: when attacking, we impose noise after normalize pixels to 0-1 but before mean and std normalization, thus we need to split previous operations of transformation.

License

This project is licensed under the license found in the LICENSE file in the root directory.

me-sampler's People

Contributors

xiaofanustc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

me-sampler's Issues

attack_list

Excuse me. I want to know what is the meaning of the values in your i3d_index_attack.txt? I mean, if I want to creat an attack_list using my own dataset, what are the necessities to be listed like this?
image

Runscript for UCF101 or HMDB51 datasets

Hi,
I am interested in your work. I would like to test the suggested method on UCF101 or HMDB51 datasets.
Can you please share the runscripts for these datasets? i.e) like run_ucf_i3d.sh, reencode_ucf.sh, congits/.json files, and attack list file?
Thank you.

Broadcasting error

Hello, Xiao.

Thank you for your kind comments on issues.

Now, I faced another error.

Please, look into it and let me know if you need more inforamtion.

Thank you.

error

Cannot run your code

Hi,
I've been trying to run your code, but it does not run because of so many errors.
I fixed all the problems mentioned by previous issues, but yet another error came out..
I think you manually modified the gluoncv toolkit too much.
Can you please share all your modifications?

Thank you.

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.