-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
model.fit_generator gave TypeError: 'NoneType' object is not callable #15
Comments
This is the error msg I got: TypeError Traceback (most recent call last) /cm/shared/apps/tensorflow2-py37-cuda10.2-gcc/2.2.0/lib/python3.7/site-packages/tensorflow/python/util/deprecation.py in new_func(*args, **kwargs) /cm/shared/apps/tensorflow2-py37-cuda10.2-gcc/2.2.0/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py in fit_generator(self, generator, steps_per_epoch, epochs, verbose, callbacks, validation_data, validation_steps, validation_freq, class_weight, max_queue_size, workers, use_multiprocessing, shuffle, initial_epoch) /cm/shared/apps/tensorflow2-py37-cuda10.2-gcc/2.2.0/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py in _method_wrapper(self, *args, **kwargs) /cm/shared/apps/tensorflow2-py37-cuda10.2-gcc/2.2.0/lib/python3.7/site-packages/tensorflow/python/keras/engine/training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, validation_batch_size, validation_freq, max_queue_size, workers, use_multiprocessing) /cm/shared/apps/tensorflow2-py37-cuda10.2-gcc/2.2.0/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py in call(self, *args, **kwds) /cm/shared/apps/tensorflow2-py37-cuda10.2-gcc/2.2.0/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py in _call(self, *args, **kwds) TypeError: 'NoneType' object is not callable |
Did you get a solution to this error? |
yes. That's because I was not using right version of TF |
Which version did you use to get it right? |
According to my technical support, we were using keras ....we should use tf keras....so he removed keras and use tf keras |
We are importing tenserflow.keras everywhere still we are getting error. Could you please tell me where did you exactly change in the code ? |
It was very long ago and i can't remember exactly. But what i remembered is we removed keras and reinstalled tensorflow and change import of keras to tensorflow.keras from tensorflow.keras.models import Model |
No description provided.
The text was updated successfully, but these errors were encountered: