fastai_scans icon indicating copy to clipboard operation
fastai_scans copied to clipboard

FileNotFoundError: [Errno 2] No such file or directory: '/content/nifti/meta/sizes'

Open Amritpal-001 opened this issue 4 years ago • 1 comments

Hii, I am new to NIFTI images, FOund your repository very useful and interesting. and was using your repoistory, but got following error

i used following code

data = (fastai_scans.VolumeItemList.from_paths(path/'nifti', path/'nifti/labels.csv')
                                   .split_by_rand_pct(0.2, seed=7)
                                   .label_from_metadata('')
                                   .transform(fastai_scans.get_transforms())
                                   .databunch(bs=bs)
                                   .normalize())

And i am Getting error -

FileNotFoundError                         Traceback (most recent call last)

<ipython-input-91-2e1bfe6fc602> in <module>()
----> 1 data = fastai_scans.VolumeItemList.from_paths(path/'nifti', path/'nifti/labels.csv')

1 frames

/usr/local/lib/python3.6/dist-packages/bcolz/toplevel.py in open(rootdir, mode)
    138         return bcolz.ctable(rootdir=rootdir, mode=mode)
    139     else:
--> 140         return bcolz.carray(rootdir=rootdir, mode=mode)

bcolz/carray_ext.pyx in bcolz.carray_ext.carray.__cinit__()

bcolz/carray_ext.pyx in bcolz.carray_ext.carray._read_meta()

FileNotFoundError: [Errno 2] No such file or directory: '/content/nifti/meta/sizes'

Please help, Thanks in advance.

Amritpal-001 avatar Jun 10 '20 18:06 Amritpal-001

I am not using BraTs challenge dataset. I have my own NIFTI data files.

Amritpal-001 avatar Jun 10 '20 19:06 Amritpal-001