Git Product home page Git Product logo

mirror's Introduction

Official Code for MIRROR (NDSS 2022)

This is the PyTorch implementation for NDSS 2022 paper "MIRROR: Model Inversion for Deep Learning Network with High Fidelity". For more inversion results, please refer to mirror github page.

Note: we only uploaded the scripts and cache files for resnet50 and vgg16 model. Others will be updated soon.

Environment

conda env create -f environment.yml
conda activate mirror

Usage

1. Download cache files

python my_download_cache.py

2. White-box invert ResNet50

Conduct the inversion.

zsh scripts/run_vggface2_resnet50_whitebox.sh

Test the inversion.

zsh scripts/run_vggface2_resnet50_whitebox_test.sh

3. Black-box invert ResNet50

Conduct the inversion.

zsh scripts/run_vggface2_resnet50_blackbox.sh

Test the inversion.

zsh scripts/run_vggface2_resnet50_blackbox_test.sh

Build cache files

We need to first generate styelgan's images if we haven't done it.

python my_sample_z_w_space.py

Use inception_resnetv1_vggface2 as an example. We first generate the outputs of the network on the stylegan's samples. Then we merge them into one file.

python my_generate_blackbox_attack_dataset.py --arch_name inception_resnetv1_vggface2 stylegan
python my_merge_all_tensors.py blackbox_attack_data/stylegan/inception_resnetv1_vggface2/no_dropout --remove

Acknowledgement

The StyleGAN models are based on genforce/genforce.

VGG16/VGG16BN/Resnet50 models are from their official websites.

InceptionResnetV1 is from timesler/facenet-pytorch.

SphereFace is from clcarwin/sphereface_pytorch.

BibTex

Please cite our work as follows for any purpose of usage.

@inproceedings{An.Mirror.NDSS.2022,
    title={MIRROR: Model Inversion for Deep Learning Network with High Fidelity},
    author={An, Shengwei and Tao, Guanhong and Xu, Qiuling and Liu, Yingqi and Shen, Guangyu and Yao, Yuan and Xu, Jingwei and Zhang, Xiangyu},
    booktitle={Proceedings of the Network and Distributed Systems Security Symposium (NDSS 2022)},
    year={2022}
}

mirror's People

Contributors

njuaplusplus 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.