-
Notifications
You must be signed in to change notification settings - Fork 121
Description
hi~
i'm trying to use the lungs image as a dataset to train the network, but it looks like there are some problems. i use python 2.7,cudnn 5.1,cuda8.0, ubuntu 16.04. the lungs images size is 1,119,879,168 bytes .
is it too big ? we can't find the problems. and we use the origin images without problems.
problem:
lzh@peach-lab:~/vnet/VNet$ python main.py -train
/home/lzh/vnet/VNet/Data/Train
FILE LIST: ['13.mhd', '22.mhd', '15.mhd', '16.mhd', '23.mhd', '8.mhd', '3.mhd', '6.mhd', '10.mhd', '4.mhd', '14.mhd', '20.mhd', '5.mhd', '19.mhd', '17.mhd', '21.mhd', '18.mhd', '11.mhd', '12.mhd', '9.mhd', '7.mhd']
MetaImage: Read: Cannot open data file
Traceback (most recent call last):
File "main.py", line 37, in
model.train()
File "/home/lzh/vnet/VNet/VNet.py", line 106, in train
self.dataManagerTrain.loadTrainingData() #loads in sitk format
File "/home/lzh/vnet/VNet/DataManager.py", line 62, in loadTrainingData
self.loadImages()
File "/home/lzh/vnet/VNet/DataManager.py", line 44, in loadImages
self.sitkImages[f]=rescalFilt.Execute(sitk.Cast(sitk.ReadImage(join(self.srcFolder, f)),sitk.sitkFloat32))
File "/home/lzh/.local/lib/python2.7/site-packages/SimpleITK/SimpleITK.py", line 8614, in ReadImage
return _SimpleITK.ReadImage(*args)
RuntimeError: Exception thrown in SimpleITK ReadImage: /tmp/SimpleITK-build/ITK/Modules/IO/Meta/src/itkMetaImageIO.cxx:491:
itk::ERROR: MetaImageIO(0xc6a56a0): File cannot be read: /home/lzh/vnet/VNet/Data/Train/13.mhd for reading.
Reason: Success