Giter VIP home page Giter VIP logo

tta-gan's Introduction

Targeted Transferable Attack against Deep Hashing Retrieval

This is the code for "Targeted Transferable Attack against Deep Hashing Retrieval".

Requirements

  • python 3.8
  • torch 1.10
  • torchvision 0.11
  • numpy 1.20

Implementation

Overview of previous methods

  • We consider four previous targeted attack methods as our competitors: DHTA (P2P), THA, ProS_GAN and NAG.
  • To evaluate the targeted transferability of different methods, we test the performance on five deep hashing methods, i.e., DPSH, HashNet, CSQ, DSDH and ADSH. Our implementations are modified based on DeepHash-pytorch.

Overview of dirs and files

  • data contains the dataset files utilized in this paper.
  • Hash contains the implementations of five deep hashing methods.
  • utils contains all the tools used for training models.
  • models contains the implementations of our method.

Usage

Train deep hashing models

You can easily train deep hashing models by replacing the path of data in the code, and then run

cd Hash
python DPSH.py
python HashNet.py
python CSQ.py
python DSDH.py
python ADSH.py

Generate anchor code

After setting the dataset and target model paths, you can generate anchor code by running

cd models
python IAO.py 

Attack by our TTA-GAN method

Initialize the hyperparameters following our paper and then run

cd models
python TTA_GAN.py 

Ensemble attack

To conduct model ensemble attack, you can run

cd models
python Ens.py 

Acknowledgement

The codes are modified based on Wang et al. 2021.

Cite

If you find this work is useful, please cite the following:

@inproceedings{zhu2023targeted,
  title={Targeted Transferable Attack against Deep Hashing Retrieval},
  author={Zhu, Fei and Zhang, Wanqian and Wu, Dayan and Wang, Lin and Li, Bo and Wang, Weiping},
  booktitle={Proceedings of the 5th ACM International Conference on Multimedia in Asia},
  pages={1--7},
  year={2023}
}

tta-gan's People

Contributors

ericazf avatar

Watchers

Kostas Georgiou avatar  avatar

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.