-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add more Events for MONAI workflow engines #1474
Conversation
merge master
Signed-off-by: Nic Ma <[email protected]>
a80eca7
to
20010f0
Compare
/black |
0d4f188
to
cac75ed
Compare
/black |
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.
thanks this needs more discussions and tests
Signed-off-by: Nic Ma <[email protected]>
70c24c0
to
25623cb
Compare
/black |
Signed-off-by: monai-bot <[email protected]>
Signed-off-by: Nic Ma <[email protected]>
/black |
Hi @wyli and @yanchengnv , Thanks for your reminder, I added test cases in the integration tests. Thanks. |
And BTW, this PR refers to ignite example: https://github.com/pytorch/ignite/blob/master/ignite/engine/events.py#L146 |
Signed-off-by: monai-bot <[email protected]>
@Nic-Ma thanks for mentioning ! Just FYI, currently we have undocumented requirements for custom events if using filters with them: pytorch/ignite#1555
|
Hi @vfdev-5 , Thanks for your tips, I didn't add Thanks. |
Yes, correct, in this case you do not need |
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.
thanks please see some comments inline, we'll discuss this next monday
Signed-off-by: Nic Ma <[email protected]>
/black |
Hi @wyli , Thanks for your review. Thanks. |
Signed-off-by: monai-bot <[email protected]>
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.
thanks, this PR adds a few events to each iteration. just wanted to note that state.output
is used to cache information across those events. not sure if this is the best way of using state.output
but seems like a viable workaround according to @Nic-Ma
Thanks @wyli , And @vfdev-5 , as we discussed in the above thread, I think Thanks. |
Description
This PR registered more Events to ignite engine for MONAI workflow trainer and evaluator.
Users can write more powerful handlers based on it.
If user has very special
iteration
computation, they can still useiteration_update()
callback.Status
Ready
Types of changes
./runtests.sh --codeformat --coverage
../runtests.sh --quick
.make html
command in thedocs/
folder.