Closed Seairis7 closed 4 years ago
You are using wrong tensorflow version, see https://github.com/AliaksandrSiarohin/pose-gan/issues/15
@AliaksandrSiarohin When I run your code in my cpu it work fine and now I am trying to run it in google colab and it throw another error :
Traceback (most recent call last):
File "train.py", line 29, in
I added 'import keras' at conditional_gan.py and run it again it gives new error:
Traceback (most recent call last):
File "train.py", line 29, in
Traceback (most recent call last): File "train.py", line 29, in
main()
File "train.py", line 26, in main
trainer.train()
File "/content/new/gan/train.py", line 103, in train
self.save_generated_images()
File "/content/new/gan/train.py", line 44, in save_generated_images
image = self.dataset.display(self.generator.predict_on_batch(batch), batch)
File "/usr/local/lib/python2.7/dist-packages/keras/engine/training.py", line 1274, in predict_on_batch
outputs = self.predict_function(ins)
File "/usr/local/lib/python2.7/dist-packages/keras/backend/tensorflow_backend.py", line 2715, in call
return self._call(inputs)
File "/usr/local/lib/python2.7/dist-packages/keras/backend/tensorflow_backend.py", line 2671, in _call
session)
File "/usr/local/lib/python2.7/dist-packages/keras/backend/tensorflow_backend.py", line 2623, in _make_callable
callable_fn = session._make_callable_from_options(callable_opts)
File "/usr/local/lib/python2.7/dist-packages/tensorflow_core/python/client/session.py", line 1505, in _make_callable_from_options
return BaseSession._Callable(self, callable_options)
File "/usr/local/lib/python2.7/dist-packages/tensorflow_core/python/client/session.py", line 1460, in init
session._session, options_ptr)
tensorflow.python.framework.errors_impl.InvalidArgumentError: input_1:0 is both fed and fetched.