taquynhnga commited on
Commit
4cce545
1 Parent(s): 208f37c

Update pages/3_Adversarial_attack.py

Browse files
Files changed (1) hide show
  1. pages/3_Adversarial_attack.py +1 -1
pages/3_Adversarial_attack.py CHANGED
@@ -163,7 +163,7 @@ if pred_class_id == (input_id-1) and (epsilon_button or find_epsilon or setting_
163
  st.balloons()
164
  break
165
  if i == len(epsilons)-1:
166
- epsilon_container.error(f'FSGM failed to attack on this image at epsilon={e:.3f}. Set higher maximum value of epsilon or choose another image',
167
  icon = "🚫")
168
 
169
  perturbed_image = deprocess_image(perturbed_data.detach().numpy())[0].astype(np.uint8).transpose(1,2,0)
 
163
  st.balloons()
164
  break
165
  if i == len(epsilons)-1:
166
+ epsilon_container.error(f'FGSM failed to attack on this image at epsilon={e:.3f}. Set higher maximum value of epsilon or choose another image',
167
  icon = "🚫")
168
 
169
  perturbed_image = deprocess_image(perturbed_data.detach().numpy())[0].astype(np.uint8).transpose(1,2,0)