We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
my code is following: img, img_header = load(args.data + '/myTrainingData/volume-' + str(idx) + '.nii')
The path is absolutely path.It always show Traceback (most recent call last): File "/home/zhounan/PycharmProjects/H-DenseUNet/train_2ddense.py", line 217, in train_and_predict() File "/home/zhounan/PycharmProjects/H-DenseUNet/train_2ddense.py", line 186, in train_and_predict trainidx, img_list, tumor_list, tumorlines, liverlines, tumoridx, liveridx, minindex_list, maxindex_list = load_fast_files(args) File "/home/zhounan/PycharmProjects/H-DenseUNet/train_2ddense.py", line 142, in load_fast_files img, img_header = load(os.path.join(args.data, 'myTrainingData/volume-' + str(idx) + '.nii')) File "/home/zhounan/anaconda3/envs/py27/lib/python2.7/site-packages/medpy/io/load.py", line 113, in load sitkimage = sitk.ReadImage(image) File "/home/zhounan/anaconda3/envs/py27/lib/python2.7/site-packages/SimpleITK/SimpleITK.py", line 8876, in ReadImage return _SimpleITK.ReadImage(*args) RuntimeError: Exception thrown in SimpleITK ReadImage: /tmp/SimpleITK/Code/IO/src/sitkImageReaderBase.cxx:107: sitk::ERROR: Unable to determine ImageIO reader for "/home/zhounan/PycharmProjects/H-DenseUNet/data/myTrainingData/volume-1.nii"
what's wrong with it?
The text was updated successfully, but these errors were encountered:
Unrelated to MedPy.
Sorry, something went wrong.
No branches or pull requests
my code is following:
img, img_header = load(args.data + '/myTrainingData/volume-' + str(idx) + '.nii')
The path is absolutely path.It always show
Traceback (most recent call last):
File "/home/zhounan/PycharmProjects/H-DenseUNet/train_2ddense.py", line 217, in
train_and_predict()
File "/home/zhounan/PycharmProjects/H-DenseUNet/train_2ddense.py", line 186, in train_and_predict
trainidx, img_list, tumor_list, tumorlines, liverlines, tumoridx, liveridx, minindex_list, maxindex_list = load_fast_files(args)
File "/home/zhounan/PycharmProjects/H-DenseUNet/train_2ddense.py", line 142, in load_fast_files
img, img_header = load(os.path.join(args.data, 'myTrainingData/volume-' + str(idx) + '.nii'))
File "/home/zhounan/anaconda3/envs/py27/lib/python2.7/site-packages/medpy/io/load.py", line 113, in load
sitkimage = sitk.ReadImage(image)
File "/home/zhounan/anaconda3/envs/py27/lib/python2.7/site-packages/SimpleITK/SimpleITK.py", line 8876, in ReadImage
return _SimpleITK.ReadImage(*args)
RuntimeError: Exception thrown in SimpleITK ReadImage: /tmp/SimpleITK/Code/IO/src/sitkImageReaderBase.cxx:107:
sitk::ERROR: Unable to determine ImageIO reader for "/home/zhounan/PycharmProjects/H-DenseUNet/data/myTrainingData/volume-1.nii"
what's wrong with it?
The text was updated successfully, but these errors were encountered: