ast0414 / adversarial-example Goto Github PK
View Code? Open in Web Editor NEWCrafting Adversarial Examples with PyTorch
License: GNU General Public License v3.0
Crafting Adversarial Examples with PyTorch
License: GNU General Public License v3.0
Hi,
I was trying to generate adversarial examples using Jacobian based saliency map method. I was using your implementation. First of all, I would like to know whether your implementation of JSMA is correct or not. Have you tested it? I just want to make sure that it is flawless.
I am using the pre-trained inceptionv3 model on pytorch and I would like to know what are the expected dimensions of inputs of jsma
function. I pass 1X3X299X299 dimensional matrix as an input_tensor
. I compute target_class as follows: y_target = torch.LongTensor([9])
. Then I call jsma function as follows: jsma(inceptionv3, image_tensor, y_target, max_distortion=0.1)
. It runs successfully but when I compare output
with image_tensor
-both are same. This is not an expected output. Can you please guide me here? what went wrong?
Also, note that here input_features.size(1)
will return 3 and it will be multiplied by 0.1 to calculate num_features
, this will be 0.3. Therefore, only one iteration will be performed.
`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.