Skip to content

No error raised if no global weights are converted in MonaiAlgo #5001

@holgerroth

Description

@holgerroth

Describe the bug
In convert_global_weights, no error raised if no global weights are converted in MonaiAlgo

To Reproduce
Server uses a different model configuration than client. Mismatching keys cause convert_global_weights to not convert any global weights causing later errors.

Expected behavior
Raise error if no weights are converted.

Screenshots
n/a

Environment

Ensuring you use the relevant python executable, please paste the output of:

python -c 'import monai; monai.config.print_debug_info()'

Additional context
dev branch

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions