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

NotFoundError (see above for traceback): Key discriminator/d_bn0/beta not found in checkpoint #51

Open
sachinjm opened this issue Aug 17, 2017 · 8 comments

Comments

@sachinjm
Copy link

even though TF>=1.0.0 I am getting NotFoundError (see above for traceback): Key discriminator/d_bn0/beta not found in checkpoint

Got above error while running ./complete.py ./data/your-test-data/aligned/* --outDir outputImages

I am trying to complete one image of size 64x64. (its not aligned)

Please help me out

@Cristy94
Copy link

Cristy94 commented Sep 5, 2017

Try removing the default checkpoint folder.

@yfor1008
Copy link

I also faced same problem,

@yfor1008
Copy link

I have solved this problem by modifying several places:

  1. batch_norm(name='d_bn{}'.format(i,)) for i in range(4)]

    change to:
batch_norm(name='d_bn{}'.format(i,)) for i in range(1,4)]
  1. batch_norm(name='g_bn{}'.format(i,)) for i in range(log_size)]

    change to:
batch_norm(name='g_bn{}'.format(i,)) for i in range(log_size - 1)]
  1. h4 = linear(tf.reshape(h3, [-1, 8192]), 1, 'd_h4_lin')

    change to:
h4 = linear(tf.reshape(h3, [-1, 8192]), 1, 'd_h3_lin')
  1. depth_mul = 8 # Depth decreases as spatial component increases.

    change to:
depth_mul = 4

@zhaoying9105
Copy link

my errror is similar:
NotFoundError (see above for traceback): Key discriminator/d_bn0/gamma not found in checkpoint #51

@gundamkeroro
Copy link

That's what I have now:
NotFoundError (see above for traceback): Key generator/g_h5/w not found in checkpoint

@richardjdavies
Copy link
Contributor

Does my pull request #49 fix this for you?

@SmallStrawHat
Copy link

SmallStrawHat commented Oct 25, 2017

@yfor1008 thanks. According to your solutions, i also solved this problem.

@hxd1011
Copy link

hxd1011 commented Jul 16, 2018

@yfor1008 how do you know about this? it fixed the problem

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

8 participants