renato145 / fastai_scans

Fastai extension to work with 3d medical images
41 stars 12 forks source link

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

Open Amritpal-001 opened 4 years ago

Amritpal-001 commented 4 years ago

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 commented 4 years ago

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