Skip to content
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

'AdversarialModel' object has no attribute '_feed_output_shapes' #49

Open
atulapra opened this issue Dec 29, 2017 · 3 comments
Open

'AdversarialModel' object has no attribute '_feed_output_shapes' #49

atulapra opened this issue Dec 29, 2017 · 3 comments

Comments

@atulapra
Copy link

atulapra commented Dec 29, 2017

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'

@singularitiai
Copy link

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

@itachi0071998
Copy link

I did that but I am still getting the same error

@sinjorjob
Copy link

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants