shawkui / MindTrojan

A Repo for Backdoor Learning with MindSpore

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MindTrojan

A Collection of Backdoor Learning Resources and Examples with MindSpore

Quick Start

  • Installation

    pip install -r requirements.txt
    
  • Quick demo:

    bash quick_demo.sh
    
  • Supported Attacks: BadNets, Blended

  • Supported Defense: Fine-tune

  • Note: By Default, the models are imported from MindCV (https://github.com/mindspore-lab/mindcv). In case some methods need to modify models, a local copy of models from MindCV is also included in this repo. Change the import part in the code to switch between the local models' folder and models in MindCV.

Citation

The default settings are in line with BackdoorBench (https://github.com/SCLBD/BackdoorBench) and we refer users to BackdoorBench for more details about the settings.

If interested, you can read our recent works about backdoor learning, and more works about trustworthy AI can be found here.

@inproceedings{backdoorbench,
  title={BackdoorBench: A Comprehensive Benchmark of Backdoor Learning},
  author={Wu, Baoyuan and Chen, Hongrui and Zhang, Mingda and Zhu, Zihao and Wei, Shaokui and Yuan, Danni and Shen, Chao},
  booktitle={Thirty-sixth Conference on Neural Information Processing Systems Datasets and Benchmarks Track},
  year={2022}
}

About

A Repo for Backdoor Learning with MindSpore

License:GNU General Public License v3.0


Languages

Language:Python 99.9%Language:Shell 0.1%