-
-
Notifications
You must be signed in to change notification settings - Fork 610
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect log position #1098
Comments
@Yevgnen thanks for reporting ! I could reproduce the issue which is related to the fact that internally in the engine, logger.info for epoch complete is called before calling all attached handlers (incl. ignite/ignite/engine/engine.py Lines 700 to 705 in 2d30d1d
This will give the following output:
If you wish/would like to contribute, please do not hesitate to send a PR with this modification, it could help us to make the library better :) |
@vfdev-5 You are always fast :-) |
Does logs like these look weird?
The train finished log is printed after all the evaluator logs...while the original output looks like
P.S. I got these output from |
@Yevgnen I think new logs are OK
|
Yes, I see that. But the elapsed time outputted by the |
True. Let's see what others say... cc @erip @sdesrozis |
Digression mode : Hey, I was facing a problem that is related, I guess. When I activate root logger of
I think time resume for an epoch should include the evaluations. In that case, do we split resume report ? A small workaround should be to allow time modifications @trainer.on(Events.EPOCH_COMPLETED)
def _():
evaluator.run([0, 1, 2])
time_taken = evaluator.state.times["EPOCH_COMPLETED"]
trainer.state.times["EPOCH_COMPLETED"] += time_taken |
OK, let's address the problem of update of time taken by epoch with the times after all handlers in a separate issue. |
I have a similar issue, when handlers for |
🐛 Bug description
When
{bar}
is removed frombar_format
of argument ofProgressBar
, immediate logger output does not print in newline.Add
to beginning of mnist_with_tqdm_logger.py and change this line to
This seems not happen to very small example
Note that the
leave
argument intqdm
corresponds to thepersist
inProgressBar
.Environment
2d30d1d
conda
,pip
, source): sourceThe text was updated successfully, but these errors were encountered: