Commit bde7ddfb authored by jtran064's avatar jtran064 Committed by Neal Wu
Browse files

output more meaningful error messages

parent 92d751b4
...@@ -208,7 +208,11 @@ def _process_image(filename, coder): ...@@ -208,7 +208,11 @@ def _process_image(filename, coder):
image_data = coder.png_to_jpeg(image_data) image_data = coder.png_to_jpeg(image_data)
# Decode the RGB JPEG. # Decode the RGB JPEG.
try:
image = coder.decode_jpeg(image_data) image = coder.decode_jpeg(image_data)
except:
print('Unexpected eror while decoding %s' % filename)
raise
# Check that image converted to RGB # Check that image converted to RGB
assert len(image.shape) == 3 assert len(image.shape) == 3
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment