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

Issues with Keras 2.2.0

Open SnowMasaya opened this issue 6 years ago • 9 comments

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

SnowMasaya avatar Jun 24 '18 21:06 SnowMasaya

I am getting the same issue.

sukhadj avatar Jun 30 '18 12:06 sukhadj

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.

mValentino91 avatar Jul 01 '18 14:07 mValentino91

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

sukhadj avatar Jul 12 '18 16:07 sukhadj

@sukhadj so it worked with keras 2.2.0 for you ?

ussaema avatar Jul 19 '18 16:07 ussaema

@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.

sukhadj avatar Jul 20 '18 08:07 sukhadj

I have the same problem. Have you solved it?

yxhhh avatar Nov 15 '18 13:11 yxhhh

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

ussaema avatar Nov 16 '18 11:11 ussaema

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().

bonorico avatar Feb 13 '19 18:02 bonorico

really hop to fix it :)

945226956 avatar May 31 '19 09:05 945226956