Giter Site home page Giter Site logo

sep's Introduction

Decription

  • The code is the official implementation of paper Self-Ensemble Protection: Training Checkpoints Are Good Data Protectors
  • This repository supports data protection on CIFAR-10, CIFAR-100, ImageNet subset
  • protecting DNN and appropriator DNN: ResNet18, SENet18, VGG16, DenseNet121, GoogLeNet
  • The experiments are run in an NVIDIA A100 GPU, but could modify the batch size to run on small GPUs
  • Install dependencies
conda env create -f pt.yaml

Reproduction

  • train the protecting DNN for CIFAR-10, CIFAR-100, ImageNet subset
python vanilla.py
python vanilla100.py
python vanillaimg.py
  • crafting protective samples (CIFAR-10, SEP)
python ens.py --num_model=30 --eps=2 --target_batch=0
  • crafting protective samples (CIFAR-10, SEP-FA)
python ens_feature.py --num_model=30 --eps=2 --target_batch=0
  • crafting protective samples (CIFAR-10, SEP-FA-VR)
python ens_feature_svre.py --num_model=15 --eps=2 --target_batch=0
  • crafting protective samples (CIFAR-100, SEP-FA-VR)
python ens_feature_svre100.py --num_model=15 --eps=2 --target_batch=0
  • crafting protective samples (ImageNet subset, SEP-FA-VR)
python ens_feature_svreimg.py --num_model=15 --eps=2 --target_batch=0
  • train the appropriator DNN
python vanilla.py --uledir=samples/XX --eps=2
python vanilla100.py --uledir=samples/XX --eps=2
python vanillaimg.py --uledir=samples/XX --eps=2

Files

├── ens_feature.py
├── ens_feature_svre100.py
├── ens_feature_svreimg.py
├── ens_feature_svre.py
├── ens.py
├── models
│   ├── densenet.py
│   ├── dpn.py
│   ├── efficientnet.py
│   ├── googlenet.py
│   ├── __init__.py
│   ├── lenet.py
│   ├── mobilenet.py
│   ├── mobilenetv2.py
│   ├── pnasnet.py
│   ├── preact_resnet.py
│   ├── regnet.py
│   ├── resnet.py
│   ├── resnext.py
│   ├── senet.py
│   ├── shufflenet.py
│   ├── shufflenetv2.py
│   └── vgg.py
├── pt.yaml
├── README.md
├── utils
│   ├── data.py
│   ├── __init__.py
│   ├── output.py
│   └── tmp.py
├── vanilla100.py
├── vanillaimg.py
└── vanilla.py

sep's People

Contributors

sizhe-chen avatar

Stargazers

WindCoat avatar  avatar Yihan avatar Derui (Derek) Wang avatar  avatar Jing Qian avatar  avatar

Watchers

 avatar

sep's Issues

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.