BRATS tutorial - Test custom NIFTI images #1399
-
Hi - I'm using the latest BRATS tutorial on MONAI v0.4.0. I have a couple of NIFTI images in my data folder very much similar to the Decathlon Dataset. How do I use these images to test the model? The provided code tutorial in github, currently, selects one image from the validation dataset to evaluate and visualize the model output [referring to this line of the code: val_input = val_ds[10]["image"].unsqueeze(0).to(device)]. Instead of the Decathlon validation dataset, I will like to use my dataset. Please advise the changes that I need to do to test the images. Thanks, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi Shekhar, Following piece of code is used in Brats tutorial to specify the validation data:
Replace the above code with the following (this was you can specify the exact files in a folder that need to be evaluated): Specify:
Thanks, |
Beta Was this translation helpful? Give feedback.
Hi Shekhar,
Following piece of code is used in Brats tutorial to specify the validation data:
Replace the above code with the following (this was you can specify the exact files in a folder that need to be evaluated):
Specify: