dcgan-completion.tensorflow
dcgan-completion.tensorflow copied to clipboard
NotFoundError (see above for traceback): Key discriminator/d_bn0/beta not found in checkpoint
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
Try removing the default checkpoint folder.
I also faced same problem,
I have solved this problem by modifying several places:
- 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)]
- 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)]
- 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')
- https://github.com/bamos/dcgan-completion.tensorflow/blob/6b0a06c300e65f209b0283ab7c076a40c42e40bb/model.py#L428 change to:
depth_mul = 4
my errror is similar: NotFoundError (see above for traceback): Key discriminator/d_bn0/gamma not found in checkpoint #51
That's what I have now: NotFoundError (see above for traceback): Key generator/g_h5/w not found in checkpoint
Does my pull request https://github.com/bamos/dcgan-completion.tensorflow/pull/49 fix this for you?
@yfor1008 thanks. According to your solutions, i also solved this problem.
@yfor1008 how do you know about this? it fixed the problem