-
Notifications
You must be signed in to change notification settings - Fork 16
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
Apply on different dataset #6
Comments
If I got it right, your data is 256x256x130 (1mmx1mmx1.3mm). In that case only use the predictions from coronal network (If your 130, 256x256 slices corresponds to coronal slices). The view aggregation improves the performance abit, but Coronal predictions are also good. You need to modify the SegmentVol function. I will prepare an example for the training code. You need to run: [net, info] = QuickNAT_Train(imdb, [], inpt); where inpt.expDir = 'Exp01'; % Any Folder Name where you want the model to be saved and imdb contains the data. I wrote a short description on how to make a imdb dataset in: https://github.com/abhi4ssj/ReLayNet |
thanks for the info. I tried the coronal idea but I keep getting this error:
I will check the training link. |
It seems the problem is with the reader 'MRIread'. You can try any other reader and pass the volume directly as Data (matrix of size 256x256x130) in |
Tried different reader. with 256,256,130 and 1,1,1.3 I got index range error but it works with 256,256,256 and 1,1,1.3, the result doesn ot look good this is the modified code: `
BTW, I have to recompile the library every time I restart matlab, is this normal? |
Are you overlaying the MRI and segmentation properly? Coronal axis predictions looks ok-ish to me, just misaligned (Might be a problem with header files). If possible drop me an e-mail with a sample volume. I will try to solve it. I haven't tried with 1.3mm thick slices as such data was not included in the training. Still, it should perform decently. |
I think when you write the result you use the default values not the one of the input image, in my case: Here are two samples the original and the one with the result above: |
The segmentation looks great but in my machine it took 120 seconds after I changed
[Predictions, SegTime] = SegmentVol(Data,70); % Change the 70 based on your GPU RAM size
to
[Predictions, SegTime] = SegmentVol(Data,10); % Change the 70 based on your GPU RAM size
The problem is when do resampling we either change the spacing or the size. In your sample case the spacing was 1mm and the size 256. I have an image with spacing 1.3mm and size 130, I don't think it is possible to change this image to 1mm and 256 with keeping its actual measurements.
Sorry if this is a very beginner question but could you please provide an example/tutorial about how to train the network on different dataset?
The text was updated successfully, but these errors were encountered: