cg563 / simple-blackbox-attack

Code for ICML 2019 paper "Simple Black-box Adversarial Attacks"
MIT License
191 stars 56 forks source link

[Question] Are the labels assumed to be one-hot encoded? #13

Closed ClonedOne closed 3 years ago

ClonedOne commented 3 years ago

Hello and thank you for sharing your code.

I'd like to ask what is the format of the labels to use? are they assumed to be one-hot encoded or just integers?

Thank you!

cg563 commented 3 years ago

The code assumes integer labels from 0 to K-1, same as when training a model in PyTorch.

Let me know if you have any other question.

ClonedOne commented 3 years ago

Thank you very much for the clarification!