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

Validation step seems to have infinite loop #31

Open
kmrabhay opened this issue May 2, 2019 · 0 comments
Open

Validation step seems to have infinite loop #31

kmrabhay opened this issue May 2, 2019 · 0 comments

Comments

@kmrabhay
Copy link

kmrabhay commented May 2, 2019

Hi,

            sess.run(iterator_inits[1])  # switch to validation dataset
            while True:
                import pdb; pdb.set_trace();
                try:
                    _, summaries_ = sess.run([loss, summaries],
                                             feed_dict={training: False})
                    # print(summaries_)

                    val_writer.add_summary(summaries_, global_step_)

                except tf.errors.OutOfRangeError:
                    break

Above code for validation steps never finishes. I trained on 192 images and validation steps never finishes even after 10 hours.

Is the because of that infinite loop and never reaching to break statement?

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

1 participant