costapt / vess2ret

A Keras implementation of pix2pix code adapted to generate retinal images from vessel networks.
MIT License
94 stars 42 forks source link

Unknown data error while loading images #9

Open AkhilSinghRana opened 6 years ago

AkhilSinghRana commented 6 years ago

HI I am getting this error while loading the images. I am using tensorflow backend and I ried switching the Image_dimension_ordering to 'tf'

util/data.py", line 164, in _load_img_pair a = img_to_array(a, self.dim_ordering) File "/usr/lib64/python2.7/site-packages/keras/preprocessing/image.py", line 286, in img_to_array raise ValueError('Unknown data_format: ', data_format) ValueError: ('Unknown data_format: ', 'default')

anuragdeshmukh commented 6 years ago

try "channels_first" or "channels_last" instead you'll have to remove exception handling conditions in data.py