Description
Is your feature request related to a problem? Please describe.
When version
is not specified in the bundle download:
Line 395 in 46e2b0e
the current behavior is to download the latest version of the bundle available in monaihosting
.
This potentially introduces an issue if user is using an older version of monai (for example, 1.3) to download a newer version of bundle (e.g. bundles developed by 1.4 and incompatible with 1.3).
Describe the solution you'd like
-
When the download is complete, check the
monai_version
in the bundle metadata. Show a warning to the user, if themonai_version
is larger than the current monai version used in the user's environment
https://github.com/Project-MONAI/model-zoo/blob/69572515b848dfbd84640125e88b4f709f07d625/models/brats_mri_axial_slices_generative_diffusion/configs/metadata.json#L16 -
On top of 1, we can consider adding a feature to further find a matched version that's compatible with the monai in user's environment. This can be implemented by iterating the
metadata.json
in different version of the bundle and settle once themonai_version
is equal or lower than the version in the environment.