Replies: 2 comments 3 replies
-
Hi @Jiang010 Does your model/classifier predict probabilities or logits? |
Beta Was this translation helpful? Give feedback.
2 replies
-
hi, @beat-buesser, umm.. Using the DeepFool may occur some troble in my project. activation="linear" cnn_model= Sequential([
Conv2D(filters=36, kernel_size=7, activation='linear', input_shape= im_shape, padding="same"),
MaxPooling2D(pool_size=2),
Conv2D(filters=54, kernel_size=5, activation='linear'),
MaxPooling2D(pool_size=2),
Flatten(),
Dense(1024, activation='linear'),
Dense(512, activation='linear'),
Dense(20, activation='softmax')
]) activation="sigmoid" cnn_model= Sequential([
Conv2D(filters=36, kernel_size=7,
activation='relu',
input_shape= im_shape,
padding="same"),
MaxPooling2D(pool_size=2),
Conv2D(filters=54,
kernel_size=5,
activation='relu'),
MaxPooling2D(pool_size=2),
Flatten(),
Dense(1024, activation='relu'),
Dense(512, activation='relu'),
Dense(20, activation='sigmoid')
]) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
These parameters are setted for DeepFool.
![image](https://user-images.githubusercontent.com/101046093/204843934-ccc1e088-043d-43a8-a3f8-9c5a716c9dbb.png)
umm, I had also tried others parameters. But, the result is not good.
The left figure is normal example. And the righ figure is adversarial example, it looks so bad.
![image](https://user-images.githubusercontent.com/101046093/204843650-7e5d2874-38f9-4933-a7b7-6d62f44e0d9f.png)
please, who can tell me, how to improve this question?
Beta Was this translation helpful? Give feedback.
All reactions