MATLAB Answers

Error in running 3-D Brain Tumor Segmentation Using Deep Learning

57 ビュー (過去 30 日間)
Jennifer Voon
Jennifer Voon 2019 年 9 月 27 日
回答済み: Shashank Gupta 2019 年 9 月 30 日
I encounted an error while running the 3-D Brain Tumor Segmentation Using Deep Learning example.
It gives the following error
Error using matlab.io.datastore.ImageDatastore/read (line 77)
Error using ReadFcn @(x)(niftiread(x)>0) function handle for file
C:\Users\Jenni\AppData\Local\Temp\BraTS\Task01_BrainTumor\labelsTr\._BRATS_166.nii.gz.
Error using images.internal.nifti.niftiFile/getUncompressedFileName (line 130)
Cannot unzip file. tempdir needs write permissions and sufficient free space.
Error in images.internal.nifti.niftiFile (line 45)
[filename, self.TempfileCleaners, ~] =
self.getUncompressedFileName(firstFile);
Error in niftiread (line 66)
NF = images.internal.nifti.niftiFile(varargin{:});
Error in preprocessBraTSdataset>@(x)(niftiread(x)>0) (line 31)
labelReader = @(x) (niftiread(x) > 0);
Error in matlab.io.datastore.PixelLabelDatastore/readNumeric (line 854)
[L,info] = read(this.ImageDatastore);
Error in preprocessBraTSdataset (line 46)
outL = readNumeric(pxds);
Anyone knows how to fix this error? The code can be obtained here.
Thank you

  0 件のコメント

サインイン to comment.

回答 (1 件)

Shashank Gupta
Shashank Gupta 2019 年 9 月 30 日
Hi Jennifer,
Cannot unzip file. tempdir needs write permissions and sufficient free space
this stack of error suggest that “niftiread()” is not able to unzip “.nii.gz” file either because of the folder does not have a read/write permission or there is no sufficient space for the function to unzip the file in the CPU/GPU memory.
You can cross check this error by reading one or two “.nii” volumes through “ImageDatastore” function. If the error persists then check your administrator permission for the folder.
I hope this helps.

  0 件のコメント

サインイン to comment.

サインイン してこの質問に回答します。

製品


リリース

R2019a

Translated by