keras-adversarial icon indicating copy to clipboard operation
keras-adversarial copied to clipboard

'AdversarialModel' object has no attribute '_feed_output_shapes'

Open atulapra opened this issue 7 years ago • 3 comments

I tried creating an adversarial network, when I got the following error. (I'm using python 3.5.3)

Traceback (most recent call last): File "gan.py", line 69, in history = model.fit(x=train_x, y=gan_targets(train_x.shape[0]), epochs=10, batch_size=batch_size) File "/home/atul/anaconda3/lib/python3.6/site-packages/keras/engine/training.py", line 1581, in fit batch_size=batch_size) File "/home/atul/anaconda3/lib/python3.6/site-packages/keras/engine/training.py", line 1399, in _standardize_user_data for output_shape, loss_fn in zip(self._feed_output_shapes, self._feed_loss_fns): AttributeError: 'AdversarialModel' object has no attribute '_feed_output_shapes'

atulapra avatar Dec 29 '17 15:12 atulapra

Happened with me when I installed it using pip. Install it by cloing the repo, and it'll work. The file adversarial_model.py is different in the pip version and doesn't have _feed_output_shapes

singularitiai avatar Jan 12 '18 07:01 singularitiai

I did that but I am still getting the same error

itachi0071998 avatar Sep 09 '18 17:09 itachi0071998

I am getting the same error. the environment is below. Keras 2.1.2 keras-adversarial 0.0.3 Keras-Applications 1.0.4 Keras-Preprocessing 1.0.2 tensorflow 1.8.0

OS: windows10

it there any solution?

sinjorjob avatar Sep 15 '18 22:09 sinjorjob