eg4000 / SKU110K_CVPR19

771 stars 182 forks source link

Error during training #66

Closed hbzhang closed 4 years ago

hbzhang commented 4 years ago

**I am training for baseline

python -u object_detector_retinanet/keras_retinanet/bin/train.py csv

But this is the error I got:**

File "/home/student/.conda/envs/py37/lib/python3.7/site-packages/keras/utils/data_utils.py", line 709, in get six.reraise(sys.exc_info()) File "/home/student/.local/lib/python3.7/site-packages/six.py", line 693, in reraise raise value File "/home/student/.conda/envs/py37/lib/python3.7/site-packages/keras/utils/data_utils.py", line 685, in get inputs = self.queue.get(block=True).get() File "/home/student/.conda/envs/py37/lib/python3.7/multiprocessing/pool.py", line 657, in get raise self._value File "/home/student/.conda/envs/py37/lib/python3.7/multiprocessing/pool.py", line 121, in worker result = (True, func(args, **kwds)) File "/home/student/.conda/envs/py37/lib/python3.7/site-packages/keras/utils/data_utils.py", line 626, in next_sample return six.next(_SHARED_SEQUENCES[uid]) File "/home/student/deeplearning/customized/retailvision/SKU110K_CVPR19/object_detector_retinanet/keras_retinanet/preprocessing/generator.py", line 287, in next return self.next() File "/home/student/deeplearning/customized/retailvision/SKU110K_CVPR19/object_detector_retinanet/keras_retinanet/preprocessing/generator.py", line 298, in next return self.compute_input_output(group) File "/home/student/deeplearning/customized/retailvision/SKU110K_CVPR19/object_detector_retinanet/keras_retinanet/preprocessing/generator.py", line 269, in compute_input_output image_group = self.load_image_group(group) File "/home/student/deeplearning/customized/retailvision/SKU110K_CVPR19/object_detector_retinanet/keras_retinanet/preprocessing/generator.py", line 147, in load_image_group return [self.load_image(image_index) for image_index in group] File "/home/student/deeplearning/customized/retailvision/SKU110K_CVPR19/object_detector_retinanet/keras_retinanet/preprocessing/generator.py", line 147, in return [self.load_image(image_index) for image_index in group] File "/home/student/deeplearning/customized/retailvision/SKU110K_CVPR19/object_detector_retinanet/keras_retinanet/preprocessing/csv_generator.py", line 270, in load_image return read_image_bgr(self.image_path(image_index)) File "/home/student/deeplearning/customized/retailvision/SKU110K_CVPR19/object_detector_retinanet/keras_retinanet/utils/image.py", line 32, in read_image_bgr image = np.asarray(Image.open(path).convert('RGB')) File "/home/student/.conda/envs/py37/lib/python3.7/site-packages/PIL/Image.py", line 915, in convert self.load() File "/home/student/.conda/envs/py37/lib/python3.7/site-packages/PIL/ImageFile.py", line 238, in load len(b)) OSError: image file is truncated (1 bytes not processed)

eg4000 commented 4 years ago

We fixed all the corrupted images we found in the latest version of the dataset. Please see if #23 solves this problem for you,

Regards, Eran.