Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
Please help me this is urgent.!
By the way I am using Window 10 x64
I am getting error while

data_loc = os.path.join('data', 'datasets', data_code + '.hdf5')
data = h5py.File(data_loc, 'r')


I run
'python train.py fcn_rffc4 brats_fold0 brats_fold0 600 -ch False' command

Error is shortly, IOError Unable to open file.... beacuse 'no such file or directory'
Long error that I got is :


Traceback (most recent call last):
File "train.py", line 305, in
start_training(model_code, data_code, checkpoint, max_passes=n_epochs, train_dir=train_dir)

File "train.py", line 273, in start_training
coach, model_def = setup_training(model_code, data_code, checkpoint, max_passes)

File "train.py", line 140, in setup_training
train, valid, test = retrieve_data(data_code=data_code)

File "train.py", line 57, in retrieve_data
data = h5py.File(data_loc, 'r')

File "C:\Users\yunus\Anaconda3\envs\medical_image\lib\site-packages\h5py_hl\files.py", line 271, in init
fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr)

File "C:\Users\yunus\Anaconda3\envs\medical_image\lib\site-packages\h5py_hl\files.py", line 101, in make_fid
fid = h5f.open(name, flags, fapl=fapl)

File "h5py_objects.pyx", line 54, in h5py._objects.with_phil.wrapper

File "h5py_objects.pyx", line 55, in h5py._objects.with_phil.wrapper

File "h5py\h5f.pyx", line 78, in h5py.h5f.open
IOError: Unable to open file (Unable to open file: name = 'data\datasets\brats_fold0.hdf5', errno = 2, error message = 'no such file or directory', flags = 0, o_flags = 0)

What I have tried:

I tried a lot but could not solve it do u have any suggestion about how to solve it !!
Posted
Updated 10-Jul-19 1:26am
Comments
Richard MacCutchan 2-Nov-18 12:50pm    
What part of "no such file or directory" do you not understand?
Richard Deeming 2-Nov-18 13:06pm    
"Please help me this is urgent.!"

No, it's not. It doesn't even make the top 10 of my "TODO" list.

Trying to make us prioritise your question over everyone else's is annoying, and will end up having the opposite effect.
[no name] 4-Nov-18 1:25am    
The error message is self explanatory!

1 solution

yeah, it's self-explanatory. But the million dollar question is that my path is correct yet it is unable to open the hdf5 file. So any suggestion what should I do?
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900