You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem occures when AdversarialTrainer is used with model, which is trained with Tensorflow/Keras >V2 and fit function is called on instance of AdversarialTrainer.
The problem is in AdversarialTrainer class fit() function in line 262, where is as paramared used nb_epochs, but this is not correct because Keras in older versions used nb_epoch so the Error is raised as you can see on screenshot below.
Keras has back support, but the correct parameter need to be used.
To Reproduce
Steps to reproduce the behavior: (see screenshot below)
Create model
Create KerasClassifier with model from step 1
Create attack (e.g. FastGradientMethod)
Create AdversarialTrainer with created attack from step 3 as parameter
Call fit function on AdversarialTrainer instance
Expected behavior
The fit function is exectuted
Screenshots
System information (please complete the following information):
Ubuntu 20.04.6
Python version 3.8
ART version "1.16.0"
TensorFlow 2.10 / Keras 2.10
The text was updated successfully, but these errors were encountered:
Hi @danielele77 Thank you very much for reporting this issue, we'll fix it as soon as possible. Please let me know if you would be interested to work on a solution for this issue.
Hi @danielele77 Thank you very much for reporting this issue, we'll fix it as soon as possible. Please let me know if you would be interested to work on a solution for this issue.
Hi @beat-buesser, thank your response. Due to my time availability, I am unfortunately not able to work on a solution to this problem.
Edit: Sorry, for updates of state of the problem
The problem occures when AdversarialTrainer is used with model, which is trained with Tensorflow/Keras >V2 and fit function is called on instance of AdversarialTrainer.
The problem is in AdversarialTrainer class fit() function in line 262, where is as paramared used nb_epochs, but this is not correct because Keras in older versions used nb_epoch so the Error is raised as you can see on screenshot below.
Keras has back support, but the correct parameter need to be used.
To Reproduce
Steps to reproduce the behavior: (see screenshot below)
Expected behavior
The fit function is exectuted
Screenshots
System information (please complete the following information):
The text was updated successfully, but these errors were encountered: