-
Notifications
You must be signed in to change notification settings - Fork 129
New issue
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
ERROR (nifti_image_write_hdr_img2): cannot open output file #24
Comments
Changes that i make is on the data_root path and save_folder path as below... data_root = /home/zaaba/anaconda3/brats17-master/Brats17TrainingData |
Hi zaabahmad, |
Hi taigw, should i change it to this instead? data_root = /home/zaaba/anaconda3/brats17-master/Brats17TrainingData |
I got the same error, if you have fixed it the bug, can you please tell me the way how to correct this error? |
@zaabahmad In your first question, it seems that you were trying to save the data to ''/result17". I guess you intended to save it in "./result17". |
@TigabuYaya Have you solved the problem? |
I'm having this same problem when trying to write my output data: ** ERROR (nifti_image_write_hdr_img2): cannot open output file 'result18/HGG/Brats18_CBICA_ATX_1.nii.gz' My test_all_class.txt file reference scheme is the same as your example in config17. |
[Resolved]: You have to make the directory containing HGG/LGG results programmatically before writing to this directory in save_array_as_nifty_volume(..) in data_process.py |
For my case, there is no enough disk space. |
Me Too !! |
how? help please |
Hello Everyone,
I'm facing this error right now..
INFO:niftynet: Restoring parameters from model17/msnet_en32sg_20000.ckpt
INFO:niftynet: Restoring parameters from model17/msnet_en32cr_20000.ckpt
Data load, 100.0% finished
** ERROR (nifti_image_write_hdr_img2): cannot open output file '/result17/HGG/Brats17_CBICA_ATX_1.nii.gz'
HGG/Brats17_CBICA_ATX_1
** ERROR (nifti_image_write_hdr_img2): cannot open output file '/result17/HGG/Brats17_CBICA_AXN_1.nii.gz'
HGG/Brats17_CBICA_AXN_1
test time 124.04104340076447
Traceback (most recent call last):
File "test.py", line 460, in
test(config_file)
File "test.py", line 450, in test
np.savetxt(save_folder + '/test_time.txt', test_time)
File "/home/zaaba/anaconda3/lib/python3.6/site-packages/numpy/lib/npyio.py", line 1307, in savetxt
open(fname, 'wt').close()
FileNotFoundError: [Errno 2] No such file or directory: '/result17/test_time.txt'
Sorry if this error is a newbie mistake... :(
The text was updated successfully, but these errors were encountered: