Skip to content

ImportError: 'IgniteInfo' from 'monai.utils' and Compatibility Issues with MONAI v1.4.0+ during Inference #713

Answered by KumoLiu
rifshu asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @rifshu,
It seems you're not using the correct MONAI version. In MONAI v1.4, you can use either from monai.config import IgniteInfo or from monai.utils import IgniteInfo, and both should work.

Here's the version check:

>>> monai.__version__
'1.4.0+13.g530cc1f3'
>>> from monai.utils import IgniteInfo
>>> from monai.config import IgniteInfo

You can update the file to use from monai.config import IgniteInfo. Alternatively, version 0.6.7 may also work in your environment. Another option is to check for multiple MONAI versions—uninstalling all versions and reinstalling 1.4 could resolve the issue.
https://github.com/Project-MONAI/model-zoo/blob/dev/models/lung_nodule_ct_detection/scripts/d…

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
3 replies
@rifshu
Comment options

@KumoLiu
Comment options

Answer selected by rifshu
@rifshu
Comment options

Comment options

You must be logged in to vote
1 reply
@KumoLiu
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants