bstriner / keras-adversarial

Keras Generative Adversarial Networks
MIT License
867 stars 231 forks source link

Issues with Keras 2.2.0 #60

Open SnowMasaya opened 6 years ago

SnowMasaya commented 6 years ago

It seems that there are some issues with the latest version of Keras 2.2.0

I try to use keras-adversarial with kears 2.2.0 but it doesen't work.

Traceback (most recent call last):
File "example_gan_convolutional.py", line 109, in <module>
player_names=["generator", "discriminator"])
File "C:\Users\MasayaOgushi\Anaconda3\envs\deep-learning-keras\lib\site-packages\keras_adversarial\adversarial_model.py", line 47, in init
self.layers = []
File "C:\Users\MasayaOgushi\Anaconda3\envs\deep-learning-keras\lib\site-packages\keras\engine\network.py", line 323, in setattr
super(Network, self).setattr(name, value)
AttributeError: can't set attribute

Any help? is this going to be fixed? Thanks

sukhadj commented 6 years ago

I am getting the same issue.

mValentino91 commented 6 years ago

I got the same problem using Keras 2.2.0. It seems to be an error caused by some incompatibilities. I tried out keras-adversarial with Keras 2.1.2 and it works.

sukhadj commented 6 years ago

It worked for me when I install it by cloning the repository. The pip version has different adversarial_model.py than repo.

ussaema commented 6 years ago

@sukhadj so it worked with keras 2.2.0 for you ?

sukhadj commented 6 years ago

@ussaema No it isn't working with keras 2.2.0. I was getting the same issues with keras 2.1.2 also.Hence I tried installing it through repo. But its not working with 2.2.0 whatsoever.

yxhhh commented 5 years ago

I have the same problem. Have you solved it?

ussaema commented 5 years ago

I am not using this module anymore. I created my own module for GANs for Kreas 2.2.x. check https://github.com/ussaema/Vector_Matrix_CapsuleGAN

bonorico commented 5 years ago

Hi, same issue here running 'example_gan.py' with python2.7 and Keras 2.2.4
keras-adversarial 0.0.3
Keras-Applications 1.0.7
Keras-Preprocessing 1.0.9

in virtualenv. OS: Ubuntu 18.4. I typically get the error by attempting to set up AdversarialModel().

945226956 commented 5 years ago

really hop to fix it :)