You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Done initializing, starting training.
Traceback (most recent call last):
File "main.py", line 348, in <module>
main()
File "main.py", line 343, in main
train(model, saver, sess, exp_string, data_generator, resume_itr)
File "main.py", line 160, in train
saver.save(sess, FLAGS.logdir + '/' + exp_string + '/model' + str(itr))
UnboundLocalError: local variable 'itr' referenced before assignment
I inspected the code of main.py and I find that in line 160, saver.save(sess, FLAGS.logdir + '/' + exp_string + '/model' + str(itr)) is being executed outside the for loop but itr variable is a loop iterator variable. Should the save function go inside the for loop?
The text was updated successfully, but these errors were encountered:
I am executing the omniglot test with the following command:
However, I am getting the error:
I inspected the code of main.py and I find that in line 160,
saver.save(sess, FLAGS.logdir + '/' + exp_string + '/model' + str(itr))
is being executed outside thefor
loop butitr
variable is a loop iterator variable. Should thesave
function go inside thefor
loop?The text was updated successfully, but these errors were encountered: