-
-
Notifications
You must be signed in to change notification settings - Fork 653
Fixes #289 #480
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
Fixes #289 #480
Conversation
- Support of logging and closing custom events is not implemented (difficult)
DO NOT MERGE YET. Forgot about #391 EDIT: Now OK |
@drozzy you can check out this version if it works better for you. |
ea85f02
to
0174d05
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vfdev-5 awesome work! The enter and exit ended up fixing the previous incorrect print outs.
- Could you run the TextCNN example again to fix the progress bar display?
- It might be worth it to add a note about bar_format being empty when using with a notebook.
@anmolsjoshi OK, I'll update the notebooks ASAP |
@anmolsjoshi I updated TextCNN and docstring. Rendering of progressbar in the github is not better. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vfdev-5 LGTM! I agree that we can ignore the rendering as it works correctly in terminal and notebook.
@vfdev-5 Sorry I haven't used ignite in a while so I can't actually reproduce it. Is there a minimal working example that I can use to test this? |
@drozzy check this one: import torch
import time
from ignite.engine import Engine, Events
from ignite.contrib.handlers import ProgressBar
def update(engine, batch):
time.sleep(0.5)
def run(data):
trainer = Engine(update)
ProgressBar(persist=True, bar_format="").attach(trainer)
trainer.run(data, max_epochs=2)
data = [1] * 10
run(data) |
Fixes #289
Description:
Updated
ProgressBar.attach
API by adding supplementary args:event_name=Events.ITERATION_COMPLETED
closing_event_name=Events.EPOCH_COMPLETED)
to handle demanded use-case:
Check list: