Replies: 1 comment 7 replies
-
Hi, could you share the error message which you get? Or is this related with computing time? (30 mins > 1-3 mins)? If it is related with computing time, could you make a run with only one image channel and how long it will take? 6 channels, it seems quite demanding work for me, of course, it depends on how big your images are. |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am working with 3d segmentation using Monai and Nifti files as inputs and using a model which has 6 input channels, I get an error in the inference testing of the model.
So after using the tutorial code from "https://github.com/Project-MONAI/tutorials/blob/72728b678947bc21443d02d3a19d29f01c9eed01/3d_segmentation/spleen_segmentation_3d.ipynb", as a reference.
I have two methods for running the inference.
1st method:
create 6 image variables of the inputs like,
img1 = path/to/img/nifti
img2 = path/to/img/nifti
.
.
img6 = path/to/img/nifti
and then during the inference, I use torch.cat to concat all of them together.
eg. sliding_window_inference(torch.cat(img1,img2,..img6)
Now this, gives me the correct output and it is processed withing 1-3mins, which is ideal. But I cannot use post tranforms on it, I made a old discussion on this link "#5335". That issue is fixed. But now while following the new method, of, creaing an image variable with all 6 paths together as per the above link
My number of predictions are equal, the start values of black pixels are predicted correctly, but the actual prediction that I require, the values are wrong and the time taken for the whole process is about 30mins. Which is not at all ideal for me.
To check the pred values are correct or not, I found the max value of prediction in my old method to be something 30.xx, but the new method the max value is around 4.xx
Any reason, why this method takes more time, but also predicts wrongly.
Beta Was this translation helpful? Give feedback.
All reactions