-
I'm encountering multiple issues when running inference using the MONAI bundle on a custom pipeline that includes RetinaNet-based object detection for 3D medical imaging (LUNA16 dataset). The issues seem to be related to the recent updates in MONAI (v1.4.0 and above). Below are the details: ImportError for IgniteInfo: ImportError: cannot import name 'IgniteInfo' from 'monai.utils' Expected Behavior: Actual Behavior: What I've Tried:
Thank you in advance for your assistance! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
Hi @rifshu, may I know the version of this bundle you are using? Version 0.6.8 should already fix this issue. Could you please try with this version? Thanks. |
Beta Was this translation helpful? Give feedback.
-
hi,
I have downloaded the resulted JSON file of dataset:
https://github.com/Project-MONAI/MONAI-extra-test-data/releases/download/0.8.1/LUNA16_datasplit-20220615T233840Z-001.zip
and in Inference.json file changes I have made are:
1) "data_list_file_path": ***@***.***_root +
'/LUNA16_datasplit/dataset_fold0.json'",
2) "dataset_dir": ".../_/LUNA16_datasplit/mhd_original/dataset_fold0.json",
error:
RuntimeError: LoadImage cannot find a suitable reader for file:
........\_\LUNA16_datasplit\mhd_original\dataset_fold0.json\1.3.6.1.4.1.14519.5.2.1.6279.6001.281489753704424911132261151767\1.3.6.1.4.1.14519.5.2.1.6279.6001.281489753704424911132261151767.nii.gz.
request:
* I have resolved some of the previous issues, but now I'm encountering a
problem related to the dataset. Could you please guide me on where I can
download the correct version of the LUNA16 dataset? Additionally, if I
already have access to the original LUNA16 dataset files (in .mhd and .raw
formats), what changes do I need to make in my inference.json file to
successfully run inference on this original dataset? Specifically, I am
looking for guidance on updating the paths, data transforms, or reader
configurations to ensure that MONAI can properly load and process the
original LUNA16 dataset for nodule detection inference. Any help would be
greatly appreciated! *
…On Thu, Nov 14, 2024 at 5:38 PM YunLiu ***@***.***> wrote:
Hi @rifshu <https://github.com/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/detection_saver.py#L18
—
Reply to this email directly, view it on GitHub
<#713 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AXLKDZPFRBX4CR4YWWAUXYT2ATGZVAVCNFSM6AAAAABRZE6MESVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMRVGY4TANY>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
|
Beta Was this translation helpful? Give feedback.
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
orfrom monai.utils import IgniteInfo
, and both should work.Here's the version check:
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…