You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seems like this is because CarliniWagnerL2.attack takes a single instance of x? Not sure if this is intended but is there anyway to allow for multiple x to be passed in at once? Would that help with the speed of the attack since at the moment generating a single attack for an in put takes ~45 seconds on a pretrained model.
The issue tracker should only be used to report bugs or feature requests. If you are looking for support from other library users, please ask a question on StackOverflow.
Describe the bug
when trying to use cw2 attack from cleverhans I get an error about
ValueError: Dimensions must be equal, but are 3 and 10 for '{{node mul_5}} = Mul[T=DT_FLOAT](const, Maximum)' with input shapes: [10,160,160,3], [10].
To Reproduce
Steps to reproduce the behavior:
Using dataset from fastai IMAGENETTE dataset
Using functional api from tf.keras with a pretrained model
where const is a tensor from tf.ones * initial const of the x input and loss_1 is a tensor that is the shape of the y output. I don't exactly see where this value comes from in the original paper so unsure exactly what the value should look like
Expected behavior
Adversarial output
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered:
Seems like this is because CarliniWagnerL2.attack takes a single instance of x? Not sure if this is intended but is there anyway to allow for multiple x to be passed in at once? Would that help with the speed of the attack since at the moment generating a single attack for an in put takes ~45 seconds on a pretrained model.
The issue tracker should only be used to report bugs or feature requests. If you are looking for support from other library users, please ask a question on StackOverflow.
Describe the bug
when trying to use cw2 attack from cleverhans I get an error about
To Reproduce
Steps to reproduce the behavior:
results in
Where the issue is, is from (I think):
https://github.com/cleverhans-lab/cleverhans/blob/master/cleverhans/tf2/attacks/carlini_wagner_l2.py#L333
where
const
is a tensor from tf.ones * initial const of the x input andloss_1
is a tensor that is the shape of the y output. I don't exactly see where this value comes from in the original paper so unsure exactly what the value should look likeExpected behavior
Adversarial output
Screenshots
If applicable, add screenshots to help explain your problem.
The text was updated successfully, but these errors were encountered: