images_name = "%s/%03d_image.jpg" % (target, i)
I have formatted it to
images_name = '{:03d_image.jpg}'.format((target, i))
Could you please point me out the mistake?
Also can this be formatted in a better manner?
format_str = ('%s: Step %d, Loss = %.2f (%.1f examples/sec; %.3f '
'sec/batch)')
print(format_str % (datetime.now(), step, loss_value,examples_per_sec, duration))