Giter Site home page Giter Site logo

ml_cyber_project_2021's Introduction

ML_Cyber_Project_2021

Open In Colab

├── data 
    └── clean_validation_data.h5 // this is clean data used to evaluate the BadNet and design the backdoor defense
    └── clean_test_data.h5
    └── sunglasses_poisoned_data.h5
    └── anonymous_1_poisoned_data.h5
    └── Multi-trigger Multi-target
        └── eyebrows_poisoned_data.h5
        └── lipstick_poisoned_data.h5
        └── sunglasses_poisoned_data.h5
├── bd_model
    └── sunglasses_bd_net.h5
    └── sunglasses_bd_weights.h5
    └── multi_trigger_multi_target_bd_net.h5
    └── multi_trigger_multi_target_bd_weights.h5
    └── anonymous_1_bd_net.h5
    └── anonymous_1_bd_weights.h5
    └── anonymous_2_bd_net.h5
    └── anonymous_2_bd_weights.h5
├── fine_pruned_model
    └── sunglasses_bd_model_pruned.h5
    └── anonymous_1_bd_model_pruned.h5
    └── anonymous_2_bd_model_pruned.h5
    └── multi_trigger_multi_target_bd_model_pruned.h5
├── eval
    └── eval_sunglasses.py
    └── eval_anonymous_1.py
    └── eval_anonymous_2.py
    └── eval_multi_trigger_multi_target.py
├── grid_search_results
    └── cl_acc_sunglasses.csv
    └── asr_sunglasses.csv
    └── cl_acc_anonymous_1.csv
    └── asr_anonymous_1.csv
    └── cl_acc_multi_trigger_multi_target.csv
    └── asr_multi_trigger_multi_target.csv
    └── combined_metrics.csv
├── Project_Final_Report__ECE_9383_.pdf //project report
├── ML_Cyber_Project.ipynb //source code of all experiments
├── goodmodel_reference.ipynb //example reference code for our GoodNets

1. Dataset

  1. Download the validation and test datasets from here and store them under data/ directory.
  2. The dataset contains images from YouTube Aligned Face Dataset. We retrieve 1283 individuals each containing 9 images in the validation dataset.

2.Models

Repaired models for backdoor attacks on face recognition can be found in the link. Repaired models are also stored in the fine_pruned_model/ directory on this repo.

3.Evaluation

  1. Evaluation script can be found in the following link
  2. You can run evaluation script using the command:
python [script path] --img_path [img_path] --bd_model_path [badnets_path] --pruned_model_path [fine_pruned_model path]

For exmaple,

python /content/ML_Cyber_Project_2021/eval/eval_sunglasses.py --img_path /content/img.jpeg --bd_model_path /content/ML_Cyber_Project_2021/bd_model/sunglasses_bd_net.h5 --pruned_model_path /content/ML_Cyber_Project_2021/fine_pruned_model/sunglasses_bd_model_pruned.h5
  1. For simplicity, you can directly run the goodmodel_reference.ipynb on Colab following the code in the notebook.

4.Project report

Project report are stored in this repo. You can read it for reference.

ml_cyber_project_2021's People

Contributors

haoyangpei avatar lihui199688 avatar

Watchers

 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.