-
Notifications
You must be signed in to change notification settings - Fork 83
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
error on training #4
Comments
Please make sure that you're using the right version of libraries as mentioned in the requirements section in Readme.md |
This error arises due to the mixed usage of Keras API and tensorflow.keras API. I was able to resolve the error by changing |
In my code I used only keras. rather than tensorflow.keras. then also I am getting error: tensorflow.python.framework.errors_impl.invalidargumenterror graph execution error what should I do please tell me |
i'm using a google colab.
when i start !python train_val.py
Traceback (most recent call last):
File "train_val.py", line 86, in
verbose=1)
File "/usr/local/lib/python3.6/dist-packages/keras/legacy/interfaces.py", line 91, in wrapper
return func(*args, **kwargs)
File "/usr/local/lib/python3.6/dist-packages/keras/engine/training.py", line 1658, in fit_generator
initial_epoch=initial_epoch)
File "/usr/local/lib/python3.6/dist-packages/keras/engine/training_generator.py", line 103, in fit_generator
callbacks._call_begin_hook('train')
File "/usr/local/lib/python3.6/dist-packages/keras/callbacks.py", line 103, in _call_begin_hook
self.on_train_begin()
File "/usr/local/lib/python3.6/dist-packages/keras/callbacks.py", line 219, in on_train_begin
callback.on_train_begin(logs)
File "/usr/local/lib/python3.6/dist-packages/tensorflow_core/python/keras/callbacks.py", line 905, in on_train_begin
if self.model._in_multi_worker_mode():
AttributeError: 'Model' object has no attribute '_in_multi_worker_mode'
The text was updated successfully, but these errors were encountered: