Coder Social home page Coder Social logo

ziangyan / pda.pytorch Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 1.0 111 KB

Implementation of our ICLR 2021 paper: Policy-Driven Attack: Learning to Query for Hard-label Black-box Adversarial Examples.

Home Page: https://openreview.net/forum?id=pzpytjk3Xb2

Python 98.57% Lua 0.18% Shell 1.24%
adversarial-attacks

pda.pytorch's People

Contributors

ziangyan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

aspnetcs

pda.pytorch's Issues

when I run ./pda_mnist_carlinet_untargeted_l2.sh ,the error occur

I0325 05:30:26.979458 11136 policy_attack.py:1433] victim_batch_size: 50
I0325 05:30:32.276054 11136 policy_attack.py:381] Found policy keys: OrderedDict([('policy_weight_fname', 'output/policy-smtrain-inv-mnist-carlinet-untargeted-l2/2020-09-28_13-41-55-DgrgzXkj/results/model_best.pth'), ('policy_bilinear', True), ('policy_normalization_type', 'none'), ('policy_use_tanh', False), ('policy_base_width', 32), ('policy_calibrate', True), ('policy_init_std', 0.003)]), only use OrderedDict([('init_std', 0.003), ('input_size', 0), ('weight_fname', 'output/policy-smtrain-inv-mnist-carlinet-untargeted-l2/2020-09-28_13-41-55-DgrgzXkj/results/model_best.pth'), ('calibrate', True), ('use_tanh', False), ('normalization_type', 'none')]) for dataset mnist and arch vgg13_inv
Traceback (most recent call last):
File "policy_attack.py", line 1503, in
main()
File "policy_attack.py", line 382, in main
policy = make_policy_model(args.dataset, args.policy_arch, **kwargs).train().to(device)
File "/home/pda.pytorch-master/models/init.py", line 202, in make_policy_model
assert osp.exists(weight_fname)
AssertionError
root@149587cc4c1c:/home/pda.pytorch-master#

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.