brats17
brats17 copied to clipboard
ERROR (nifti_image_write_hdr_img2): cannot open output file
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
Sorry if this error is a newbie mistake... :(
Changes that i make is on the data_root path and save_folder path as below...
data_root = /home/zaaba/anaconda3/brats17-master/Brats17TrainingData save_folder = /home/zaaba/anaconda3/brats17-master/Brats17TrainingData/result17 data_names = config17/test_names_temp.txt
Hi zaabahmad, Can you make sure the output dir exists? You need to create that dir manually as the code does not create it automatically.
Hi taigw, Thank you for responding. The output dir did exists as i have manually create it. As below configuration. data_root = /home/zaaba/anaconda3/brats17-master/Brats17TrainingData save_folder = /home/zaaba/anaconda3/brats17-master/Brats17TrainingData/result17 data_names = config17/test_names_temp.txt
should i change it to this instead?
data_root = /home/zaaba/anaconda3/brats17-master/Brats17TrainingData save_folder = /home/zaaba/anaconda3/brats17-master/Brats17TrainingData/result17 data_names = /home/zaaba/anaconda3/brats17-master/config17/test_names_temp.txt
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.
For my case, there is no enough disk space.
Me Too !!
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
how? help please