orobix / retina-unet

Retina blood vessel segmentation with a convolutional neural network
1.26k stars 468 forks source link

prepare_datasets_DRIVE.py #18

Closed vdfbb closed 7 years ago

vdfbb commented 7 years ago

Hi there,

After execute prepare_datasets_DRIVE.py script, it shows following message on Ubuntu16.04. Any idea what's the reason behind it? Many thanks.

ground truth and border masks are correctly withih pixel value range 0-255 (black-white) saving train datasets Traceback (most recent call last): File "prepare_datasets_DRIVE.py", line 82, in write_hdf5(imgs_train, dataset_path + "DRIVE_dataset_imgs_train.hdf5") File "prepare_datasets_DRIVE.py", line 15, in write_hdf5 with h5py.File(outfile,"w") as f: File "/usr/lib/python2.7/dist-packages/h5py/_hl/files.py", line 272, in init fid = make_fid(name, mode, userblock_size, fapl, swmr=swmr) File "/usr/lib/python2.7/dist-packages/h5py/_hl/files.py", line 98, in make_fid fid = h5f.create(name, h5f.ACC_TRUNC, fapl=fapl, fcpl=fcpl) File "h5py/_objects.pyx", line 54, in h5py._objects.with_phil.wrapper (/build/h5py-nQFNYZ/h5py-2.6.0/h5py/_objects.c:2577) File "h5py/_objects.pyx", line 55, in h5py._objects.with_phil.wrapper (/build/h5py-nQFNYZ/h5py-2.6.0/h5py/_objects.c:2536) File "h5py/h5f.pyx", line 96, in h5py.h5f.create (/build/h5py-nQFNYZ/h5py-2.6.0/h5py/h5f.c:1984) IOError: Unable to create file (Unable to open file: name = './drive_datasets_training_testing/drive_dataset_imgs_train.hdf5', errno = 2, error message = 'no such file or directory', flags = 13, o_flags = 242)