Add more Events for MONAI workflow engines#1474
Conversation
merge master
Signed-off-by: Nic Ma <nma@nvidia.com>
a80eca7 to
20010f0
Compare
|
/black |
0d4f188 to
cac75ed
Compare
|
/black |
wyli
left a comment
There was a problem hiding this comment.
thanks this needs more discussions and tests
Signed-off-by: Nic Ma <nma@nvidia.com>
70c24c0 to
25623cb
Compare
|
/black |
Signed-off-by: monai-bot <monai.miccai2019@gmail.com>
Signed-off-by: Nic Ma <nma@nvidia.com>
|
/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 <monai.miccai2019@gmail.com>
|
@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 |
wyli
left a comment
There was a problem hiding this comment.
thanks please see some comments inline, we'll discuss this next monday
Signed-off-by: Nic Ma <nma@nvidia.com>
|
/black |
|
Hi @wyli , Thanks for your review. Thanks. |
Signed-off-by: monai-bot <monai.miccai2019@gmail.com>
wyli
left a comment
There was a problem hiding this comment.
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
iterationcomputation, they can still useiteration_update()callback.Status
Ready
Types of changes
./runtests.sh --codeformat --coverage../runtests.sh --quick.make htmlcommand in thedocs/folder.