Trevillie / MagNet

MagNet: a Two-Pronged Defense against Adversarial Examples
BSD 2-Clause "Simplified" License
95 stars 35 forks source link

how to change adversarial samples #8

Closed EmotionalXX closed 4 years ago

EmotionalXX commented 4 years ago

Hi,I know the demo is for C&W adversarial attack,now I need to test other adversarial samples,Could you tell me how to make it in a easy way.Thank you!

Trevillie commented 4 years ago

Hi, please refer to step two in the instructions here: https://github.com/Trevillie/MagNet#run-the-demo-code.

EmotionalXX commented 4 years ago

Hi, please refer to step two in the instructions here: https://github.com/Trevillie/MagNet#run-the-demo-code.

well,I mean how to get matching pkl file of other adversarial attack.In another way,What should I pack as pkl file.Thank you!

Trevillie commented 4 years ago

Ah. The attack data is a numpy array with shape (num_of_samples, height, width, channels). You can check the provided attack data as an example.

EmotionalXX commented 4 years ago

Ah. The attack data is a numpy array with shape (num_of_samples, height, width, channels). You can check the provided attack data as an example.

Thank you! I make it.