Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wholeBody_ct_segmentation model for DICOM input file #508

Closed
ytl0623 opened this issue Sep 25, 2023 · 2 comments
Closed

wholeBody_ct_segmentation model for DICOM input file #508

ytl0623 opened this issue Sep 25, 2023 · 2 comments

Comments

@ytl0623
Copy link

ytl0623 commented Sep 25, 2023

Hi, I was used wholeBody_ct_segmentation model to test custom clinical image.

But the format file is NIFITI (.nii), how can I inference the model with DICOM file format.

Is there any method to prove it.

Thanks in advance.

@diazandr3s
Copy link
Collaborator

Hi @ytl0623,

This is a good question.
I guess there are two options here:

  • Use monaibundle app in MONAI Label and a DICOM Web server (Slicer, Orthanc) to run batch inference
  • Convert DICOM images to NIfTI/NRRD and run batch inference as it is shown in the tutorial

Hope this helps,

@ArthurRomansini
Copy link

ArthurRomansini commented Nov 22, 2023

If you're using the model via a python script you can just pass the dicom directory to the preprocess like that:

CTDicomFolder = "./data/yourdicomfolder"
configPath = "./models/yourmodelhere/configs/inference.json"

config = ConfigParser()
config.read_config(configPath)
preprocessing = config.get_parsed_content("preprocessing")
data = preprocessing({'image': CTDicomFolder})

@ytl0623 ytl0623 closed this as completed May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants