AgitatedDove14 yes but I don't see in the docs how to attach it to the logger of the earlystopping handler
JitteryCoyote63 I think there is a ClearML logger , no?
AgitatedDove14 So in the https://pytorch.org/ignite/_modules/ignite/handlers/early_stopping.html#EarlyStopping class I see that some infos are logged (in the __call__
function), and I would like to have these infos logged by clearml
AgitatedDove14 I was able to redirect the logger by doing so:clearml_logger = Task.current_task().get_logger().report_text early_stopping = EarlyStopping(...) early_stopping.logger.debug = clearml_logger early_stopping.logger.info = clearml_logger early_stopping.logger.setLevel(logging.DEBUG)
Hmm that is odd, let me see if I can reproduce it.
What's the clearml version you are using ?
JitteryCoyote63 Is this an Ignite feature ? what is the expectation ? (I guess the ClearML Logger just inherits from the base ignite logger)
Just tested locally, in terminal its the same: with the hack it works, without the hack it doesn't show the logger messages
No idea, I also would have expected it to be automatically logged as console output 🤔
(by console you mean in the dashboard right? or the terminal?)
JitteryCoyote63 nice hack 😄
how come it is not automatically logged as console output ?