-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Description
Is your feature request related to a problem? Please describe.
When version is not specified in the bundle download:
Line 395 in 46e2b0e
| version: version name of the target bundle to download, like: "0.1.0". If `None`, will download |
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_versionin the bundle metadata. Show a warning to the user, if themonai_versionis 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.jsonin different version of the bundle and settle once themonai_versionis equal or lower than the version in the environment.