Skip to content

Commit 8e557ac

Browse files
authored
Catch hyperparameter incompatibility in checkpoints (#319)
1 parent a2e35bc commit 8e557ac

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

viscy/cli.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,13 @@ def add_arguments_to_parser(self, parser) -> None:
3636
}
3737
)
3838

39+
def _parse_ckpt_path(self) -> None:
40+
try:
41+
return super()._parse_ckpt_path()
42+
except SystemExit:
43+
# FIXME: https://github.com/Lightning-AI/pytorch-lightning/issues/21255
44+
return None
45+
3946

4047
def _setup_environment() -> None:
4148
"""Set log level and TF32 precision."""

0 commit comments

Comments
 (0)