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

Checkpoint saver not defined in "resnet50_test.py" #21

Open
AaronYALai opened this issue Apr 14, 2017 · 0 comments
Open

Checkpoint saver not defined in "resnet50_test.py" #21

AaronYALai opened this issue Apr 14, 2017 · 0 comments

Comments

@AaronYALai
Copy link

The saver seems to be not defined before using it:

NameError: name 'saver' is not defined

Adding these before "print ('Starting training...')" makes it good

# Create a saver
saver = tf.train.Saver(...variables...)

But I think "...variables..." should be "variables_to_train"(including params of heads) rather than "vars_to_restore"(Only Resnet params)

Just a suggestion,
Thanks!

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