Discussions>tensorflow.python.framework.errors_impl.FailedPreconditionError: 2 root error(s) found>

tensorflow.python.framework.errors_impl.FailedPreconditionError: 2 root error(s) found

Why am I getting this? I'm using Tensorflow 1.15 and I try to run, but I get a weird error.

tensorflow.python.framework.errors_impl.FailedPreconditionError: 2 root error(s) found.

What's wrong with this? My model is an autoencoder for semantic segmentation tasks.

2 votesJW270.00
1 Answers
JO242.00
1

The problem is related to the initialization of ops (layers). Make sure you have tf.initialize_all_variables()  or checkpoint loading part.

tf.initialize_all_variables()
saver = tf.train.Saver()
saver.restore(sess, checkpoint_path)
Reply
Couldn't find what you were looking for?and we will find an expert to answer.
How helpful was this page?