GithubHelp home page GithubHelp logo

trustworthypj's Introduction

train a 2val model

python train_cifar10.py --loss=st --chan3val2 --epsilon=0.2 --step-size=0.02

loss 可以是st,sat,trades。分别是standard training, standard adversarial training, trades

默认是在前台运行。可以加--submitit作为批任务提交。

test with pgd attack

python pgd_attack_cifar10.py --chan3val2 --ckpt=model-cifar-wideResNet\sat_3chan2val_epoch76.pt --epsilon=0.2 --step-size=0.02

result

3channel, 2val per channel

训练方法 clean acc pgd acc
st 81 0.1
sat 64.7 64.7

todo

目前做的是先把数据集转换成01二值的数据集,然后再训练、对抗。打算试试对原数据集先加对抗扰动,再转成01。

trustworthypj's People

Contributors

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