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

I met come errors in trainer.py #46

Open
ChenXiao61 opened this issue May 19, 2019 · 5 comments
Open

I met come errors in trainer.py #46

ChenXiao61 opened this issue May 19, 2019 · 5 comments

Comments

@ChenXiao61
Copy link

Thanks for sharing your code for us !
I have trained for more than 2500 epochs on one GTX 1080 ti, but the resolution is still the init phase :4X4 and doesn't grow . And I met the error after 2557 epochs like this:
AttributeError: 'DataParallel' object has no attribute 'grow_network'.
I don't know how to solve.

@kleinyoni
Copy link

add module like this
G.module.grow_network

This worked for me

@ChenXiao61
Copy link
Author

Thanks. @kleinyoni Where did I add module "G.module.grow_network"?

@n1dhi
Copy link

n1dhi commented Jun 12, 2019

Change G.grow_network to G.module.grow_network and do the same thing for D.grow_network as well

@ChenXiao61
Copy link
Author

@n1dhi Thanks, did you mean change to this
self.G.module.grow_network(floor(self.resl))
self.D.module.grow_network(floor(self.resl)) in the trainer.py?

@txdon
Copy link

txdon commented Apr 10, 2020

@n1dhi Thanks, did you mean change to this
self.G.module.grow_network(floor(self.resl))
self.D.module.grow_network(floor(self.resl)) in the trainer.py?

Hi, i met same error, could you solve this problem? please help me! thank you!

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