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

KeyError: 'fadein_block' #48

Open
WilliamHoo opened this issue Jul 19, 2019 · 2 comments
Open

KeyError: 'fadein_block' #48

WilliamHoo opened this issue Jul 19, 2019 · 2 comments

Comments

@WilliamHoo
Copy link

Hi, I was running the code, and i come with the problem below:

growing network[4x4 to 8x8]. It may take few seconds...
growing network[4x4 to 8x8]. It may take few seconds...
[*] Renew dataloader configuration, load data from ../../input.
Traceback (most recent call last):
File "trainer.py", line 392, in
trainer.train()
File "trainer.py", line 266, in train
self.resl_scheduler()
File "trainer.py", line 164, in resl_scheduler
self.fadein['gen'] = dict(self.G.module.named_children())['fadein_block']
KeyError: 'fadein_block'

i set the trns_tick=4 and stab_tick=2 to speed up the process to see if there is any additional bug in the code. is that the problem is? is there any constraints on the value of trns_tick and stab_tick?

@July250229
Copy link

I met the same problem.

@ningmomomomomo
Copy link

I think it's nothing to do with trns_tick or stab_tick
just change self.G.module.named_children() into self.G.module.model.named_children()

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

3 participants