Skip to content

Commit

Permalink
update validation epoch
Browse files Browse the repository at this point in the history
Signed-off-by: Wenqi Li <[email protected]>
  • Loading branch information
wyli committed Oct 11, 2023
1 parent 4743945 commit 0640e2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion monai/handlers/validation_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,4 @@ def __call__(self, engine: Engine) -> None:
"""
if self.validator is None:
raise RuntimeError("please set validator in __init__() or call `set_validator()` before training.")
self.validator.run(engine.state.epoch)
self.validator.run(max(engine.state.epoch, 1))

0 comments on commit 0640e2e

Please sign in to comment.