Traceback (most recent call last):
File "myTrain.py", line 6, in
data_provider = image_util.ImageDataProvider(search_path, a_min=0, a_max=255, data_suffix='.jpg', mask_suffix='_poly.png')
File "/home/geoic/tf_unet-master/tf_unet/image_util.py", line 169, in init
img = self._load_file(self.data_files[0])
File "/home/geoic/tf_unet-master/tf_unet/image_util.py", line 178, in _load_file
return np.array(Image.open(path), dtype)
TypeError: float() argument must be a string or a number, not 'TiffImageFile'
root@ubuntu:/home/geoic/tf_unet-master/tf_unet# vim image_util.py
Who knows why this happen? Thanks a lot!
Traceback (most recent call last): File "myTrain.py", line 6, in
data_provider = image_util.ImageDataProvider(search_path, a_min=0, a_max=255, data_suffix='.jpg', mask_suffix='_poly.png')
File "/home/geoic/tf_unet-master/tf_unet/image_util.py", line 169, in init
img = self._load_file(self.data_files[0])
File "/home/geoic/tf_unet-master/tf_unet/image_util.py", line 178, in _load_file
return np.array(Image.open(path), dtype)
TypeError: float() argument must be a string or a number, not 'TiffImageFile'
root@ubuntu:/home/geoic/tf_unet-master/tf_unet# vim image_util.py