DSE-MSU / DeepRobust

A pytorch adversarial library for attack and defense methods on images and graphs
MIT License
994 stars 192 forks source link

Missing description of parameter #69

Closed mle-els closed 3 years ago

mle-els commented 3 years ago

The parameter target_label here is missing some description:

https://deeprobust.readthedocs.io/en/latest/source/deeprobust.image.attack.html#deeprobust.image.attack.lbfgs.LBFGS.generate

I thought it would accept an array of the same shape as label, it turns out to accept only an integer.

mle-els commented 3 years ago

Also, this description in the CW class looks off:

    label :
        target label

https://deeprobust.readthedocs.io/en/latest/source/deeprobust.image.attack.html#deeprobust.image.attack.cw.CarliniWagner.generate

YaxinLi0-0 commented 3 years ago

First, thank you for reminding us for the missing description! Currently LBFGS algorithm does not support batch calculation. The reason is that for each generating process, it is required to search for the result of the box-constrained optimization problem.