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
Describe the bug
Model architectures comprising of Keras Sequential layers are throwing various error while attempting to be used with the KerasClassifier wrapper, for latest versions of Keras.
The errors seem to relate to TensorFlow Eager Execution, as well as TensorFlow V2 Behaviour. Even after trying all sorts of configuration, the errors seemingly cannot be resolved.
The ONLY way to use KerasClassifier successfully, is to use older versions of Keras ( e.g, 2.15.0 ) and TensorFlow ( e.g. 2.15.0 ).
To Reproduce
Steps to reproduce the behavior:
Train any model with Keras versions 3.. ( tried with 3.3.3 )
Save/Load or directly use with KerasClassifier wrapper.
As per the error descriptions, try changing TensorFlow configurations as as disabling eager-execution / v2 behaviour.
Expected behavior
A model trained/saved with the latest version of Keras, should be able to be used with KerasCassifier wrapper.
System information (please complete the following information):
OS - Windows
Python version 3.11
ART 1.18.1
TensorFlow 2.16.1 / Keras 3.3.3
The text was updated successfully, but these errors were encountered:
one of the common error i get is ( module 'tensorflow.keras.backend' has no attribute 'placeholder')
when i trying to use the kerasclassifier wrapper as in the statment:
classifier = KerasClassifier(model=model,clip_values=(min_pixel_value, max_pixel_value),use_logits=False)
can anyone help me to resolve this error please
Describe the bug
Model architectures comprising of Keras Sequential layers are throwing various error while attempting to be used with the KerasClassifier wrapper, for latest versions of Keras.
The errors seem to relate to TensorFlow Eager Execution, as well as TensorFlow V2 Behaviour. Even after trying all sorts of configuration, the errors seemingly cannot be resolved.
The ONLY way to use KerasClassifier successfully, is to use older versions of Keras ( e.g, 2.15.0 ) and TensorFlow ( e.g. 2.15.0 ).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A model trained/saved with the latest version of Keras, should be able to be used with KerasCassifier wrapper.
System information (please complete the following information):
The text was updated successfully, but these errors were encountered: