Closed Testbild closed 2 years ago
tf.Print() function might help you
Thank you for your answer. I tried tf.Print() but no luck with this either.
Could you maybe let me know where the loss function is called after each propagation? I think I am missing where this is happening.
Hello,
I have a question regarding the outputs while training.
I think, that here:
the trainer.main() is called perpetually until training ends.
And that after each amount of steps:
the
self.log_printer(retinanet, optimizer, global_step, tower_grads, total_loss_dict, num_gpu, graph)
is called to output the information above.But when I place a print just before that line:
in the:
then it is only printed once.
The main reason I am doing this is, because I want to understand better, what are the predictions and inputs in the focal_loss function:
So I wanted to have them printed out, each time the focal loss is calculated, but somehow I am not able to get this perpetual print out during training. Am I missing something maybe and is the loss function only called after a certain amount of steps, or am I doing something wrong?
Your help is highly appreciated and thank you very much for always answering the questions posted here in the issues.
Best regards!