Git Product home page Git Product logo

unsupervised-poisoning-attack-via-scan-and-error-minimize-method's Introduction

Labeling with clustering models (Gansbeke W etal.), generating noises with error-minimizing (Huang etal.) method.

The repository is based on the Code from ICLR2021 Spotlight Paper "Unlearnable Examples: Making Personal Data Unexploitable " by Hanxun Huang, Xingjun Ma, Sarah Monazam Erfani, James Bailey, Yisen Wang.

    的

Dataset

Dowmload the agnostic-label CIFAR10 dataset from here. The labels are generated by deep clustering models.

Generate agnostic label cifar10 min-min samplewise noise

Set the argument --seed , it will automatically genarates an experiment folder.
The args --train_data_path, --test_data_path should be set to your own path.

--seed 4
--version resnet18
--exp_name result/agnostic_cifar10/min-min/samplewise/
--config_path configs/cifar10
--train_batch_size 512
--eval_batch_size 512
--num_of_workers 0
--train_data_type AgnosticCIFAR10Folder
--train_data_path C:\Users\zhangyisheng\Desktop\My-Unsupervised-Classification-master\datasets\agnostic-label-cifar-10-clean
--test_data_type CIFAR10
--test_data_path C:\Users\zhangyisheng\Desktop\My-Unsupervised-Classification-master\datasets\cifar-10
--universal_stop_error 0.01
--train_step 10
--attack_type min-min
--perturb_type samplewise
--noise_shape 50000 3 32 32
--epsilon 16
--num_steps 20
--step_size 0.8

Train on agnostic label cifar10 min-min samplewise ue

Remenber set the arg --seed and the arg --perturb_tensor_filepath simultaneously.

--seed 4
--version resnet18
--exp_name result/agnostic_cifar10/min-min/samplewise/
--config_path configs/cifar10
--train_data_type PoisonAgnosticCIFAR10Folder
--poison_rate 1.0
--perturb_type samplewise
--perturb_tensor_filepath result/agnostic_cifar10/min-min/samplewise\resnet18_seed4/perturbation.pt
--train
--num_of_workers 0
--train_data_path C:\Users\zhangyisheng\Desktop\My-Unsupervised-Classification-master\datasets\agnostic-label-cifar-10-clean
--test_data_path C:\Users\zhangyisheng\Desktop\My-Unsupervised-Classification-master\datasets\cifar-10

Generate agnostic label cifar10 min-min classwise noise

--seed 4
--config_path configs/cifar10
--exp_name result/agnostic_cifar10/min-min/classwise
--version resnet18
--train_data_type AgnosticCIFAR10Folder
--noise_shape 10 3 32 32
--epsilon 16
--num_steps 1
--step_size 0.8
--attack_type min-min
--perturb_type classwise
--universal_train_target train_subset
--universal_stop_error 0.1 --use_subset
--num_of_workers 0
--train_data_path C:\Users\zhangyisheng\Desktop\My-Unsupervised-Classification-master\datasets\agnostic-label-cifar-10-clean
--test_data_path C:\Users\zhangyisheng\Desktop\My-Unsupervised-Classification-master\datasets\cifar-10

Train on agnostic label cifar10 min-min classwise ue

--seed 4
--version resnet18
--exp_name result/agnostic_cifar10/min-min/classwise/
--config_path configs/cifar10
--train_data_type PoisonAgnosticCIFAR10Folder
--poison_rate 1.0
--perturb_type classwise
--perturb_tensor_filepath result/agnostic_cifar10/min-min/classwise/resnet18_seed4\perturbation.pt
--train
--num_of_workers 0
--train_data_path C:\Users\zhangyisheng\Desktop\My-Unsupervised-Classification-master\datasets\agnostic-label-cifar-10-clean
--test_data_path C:\Users\zhangyisheng\Desktop\My-Unsupervised-Classification-master\datasets\cifar-10

Aknowledgement

Unlearnable Examples

ICLR2021 Spotlight Paper "Unlearnable Examples: Making Personal Data Unexploitable " by Hanxun Huang, Xingjun Ma, Sarah Monazam Erfani, James Bailey, Yisen Wang.

SCAN

ECCV2020 "SCAN: Learning to Classify Images without Labels" by Wouter Van Gansbeke, Simon Vandenhende, Stamatios Georgoulis, Marc Proesmans, Luc van Gool.

unsupervised-poisoning-attack-via-scan-and-error-minimize-method's People

Contributors

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