OpenNMT Forum

No Console Logs while Training

Hello everyone
I used blew command in my python file to train new model.

Runner(model, config_model, auto_config=True).train(with_eval=True)

when I run my file in CLI, everything works completely fine (thanks to your great system and guidance).
However,console logs (such as steps, checkpoints, Loss and etc) aren’t shown. could you help me how I can show them in CLI while my model is training?

thank you for your help.

Hi,

You have to configure the TensorFlow logger to show “INFO” logs:

import tensorflow as tf
import logging
tf.get_logger().setLevel(logging.INFO)
1 Like