김성주

fixed batch loop

......@@ -114,7 +114,7 @@ with tf.Session() as sess:
loss_total, loss_xy, loss_wh, loss_conf, loss_class = AverageMeter(), AverageMeter(), AverageMeter(), AverageMeter(), AverageMeter()
### train part
for i in trange(args.train_batch_num):
for i in trange(args.train_batch_num+1):
_, __y_pred, __y_true, __loss, __global_step, __lr = sess.run(
[train_op, y_pred, y_true, loss, global_step, learning_rate],
feed_dict={is_training: True})
......
......@@ -1766,7 +1766,7 @@
" loss_total, loss_xy, loss_wh, loss_conf, loss_class = AverageMeter(), AverageMeter(), AverageMeter(), AverageMeter(), AverageMeter()\n",
"\n",
" ### train part\n",
" for i in trange(train_batch_num):\n",
" for i in trange(train_batch_num+1):\n",
" _, __y_pred, __y_true, __loss, __global_step, __lr = sess.run(\n",
" [train_op, y_pred, y_true, loss, global_step, learning_rate],\n",
" feed_dict={is_training: True})\n",
......