dcgan-completion.tensorflow icon indicating copy to clipboard operation
dcgan-completion.tensorflow copied to clipboard

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

Open sachinjm opened this issue 7 years ago • 8 comments

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

sachinjm avatar Aug 17 '17 02:08 sachinjm

Try removing the default checkpoint folder.

Cristy94 avatar Sep 05 '17 19:09 Cristy94

I also faced same problem,

yfor1008 avatar Sep 18 '17 09:09 yfor1008

I have solved this problem by modifying several places:

  1. https://github.com/bamos/dcgan-completion.tensorflow/blob/6b0a06c300e65f209b0283ab7c076a40c42e40bb/model.py#L74 change to:
batch_norm(name='d_bn{}'.format(i,)) for i in range(1,4)]
  1. https://github.com/bamos/dcgan-completion.tensorflow/blob/6b0a06c300e65f209b0283ab7c076a40c42e40bb/model.py#L78 change to:
batch_norm(name='g_bn{}'.format(i,)) for i in range(log_size - 1)]
  1. https://github.com/bamos/dcgan-completion.tensorflow/blob/6b0a06c300e65f209b0283ab7c076a40c42e40bb/model.py#L414 change to:
h4 = linear(tf.reshape(h3, [-1, 8192]), 1, 'd_h3_lin')
  1. https://github.com/bamos/dcgan-completion.tensorflow/blob/6b0a06c300e65f209b0283ab7c076a40c42e40bb/model.py#L428 change to:
depth_mul = 4

yfor1008 avatar Sep 19 '17 11:09 yfor1008

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

zhaoying9105 avatar Sep 24 '17 03:09 zhaoying9105

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

gundamkeroro avatar Oct 03 '17 19:10 gundamkeroro

Does my pull request https://github.com/bamos/dcgan-completion.tensorflow/pull/49 fix this for you?

richardjdavies avatar Oct 14 '17 15:10 richardjdavies

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

SmallStrawHat avatar Oct 25 '17 14:10 SmallStrawHat

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

hxd1011 avatar Jul 16 '18 10:07 hxd1011