when training object detection models using tensorflow, we always input
python train.py --logtostderr --train_dir=training/ --pipeline_config_path=training/ssd_mobilenet_v1_pets.config
But I wonder what the functionality of "--logtostderr" is ? what if omit it?
as the name implies, it sends the logs to STDERR standard file, which would allow you to append at the end of the command: 2> somefilecontainingthelogs.txt
You can read more about STDIN, STDOUT and STDERR here: http://www.learnlinux.org.za/courses/build/shell-scripting/ch01s04.html
If you were to not include the --logtostderr parameter, the logs would typically be sent over to STDOUT; practically if you were to run the command as you have in your question, the result would be the same. But if you were using 2> for redirecting the logs to a file, omitting the --logtostderr would no longer log anything and the logs would appear on the screen since STDOUT is not redirected to a file.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With