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

example_gan.py cannot set attribute error #67

Open
yuvaramsingh94 opened this issue Jun 20, 2019 · 2 comments
Open

example_gan.py cannot set attribute error #67

yuvaramsingh94 opened this issue Jun 20, 2019 · 2 comments

Comments

@yuvaramsingh94
Copy link

hi . I am trying to run the example_gan.py code but I am facing issue with initializing the model . keras keeps throwing cannot set attributes error .

My env :
python 3.7
tensorflow 1.13.1
keras 2.2.4
keras-adversarial 0.0.3

`==================================================================================================
Total params: 2,946,577
Trainable params: 2,946,577
Non-trainable params: 0


Traceback (most recent call last):
File "example_gan.py", line 118, in
main()
File "example_gan.py", line 114, in main
latent_dim=latent_dim)
File "example_gan.py", line 68, in example_gan
player_names=["generator", "discriminator"])
File "C:\Users\vmvijayayuvaram.s\AppData\Local\Continuum\anaconda3\envs\tf_gpu_1\lib\site-packages\keras_adversarial-0.0.3-py3.7.egg\keras_adversarial\adversarial_model.py", line 47, in init
File "C:\Users\vmvijayayuvaram.s\AppData\Local\Continuum\anaconda3\envs\tf_gpu_1\lib\site-packages\keras\engine\network.py", line 316, in setattr
super(Network, self).setattr(name, value)
AttributeError: can't set attribute
`

@BettyWhcy
Copy link

I have the same problem. Do you solve it now?

@yuvaramsingh94
Copy link
Author

no . i haven't found 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

2 participants