jakeret / tf_unet

Generic U-Net Tensorflow implementation for image segmentation
GNU General Public License v3.0
1.9k stars 748 forks source link

float() argument must be a string or a number, not 'TiffImageFile' #200

Open sanersbug opened 6 years ago

sanersbug commented 6 years ago

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