@@ -263,12 +263,11 @@ def _process_image_files_batch(coder, thread_index, ranges, name, filenames,
try:
image_buffer, height, width = _process_image(filename, coder)
- except Exception, e:
- print (e)
- print ('SKIPPED. Unexpected eror while decoding %s' % filename)
+ except Exception as e:
+ print(e)
+ print('SKIPPED: Unexpected eror while decoding %s.' % filename)
continue
-
example = _convert_to_example(filename, image_buffer, label,
text, height, width)
writer.write(example.SerializeToString())