Browse Source

Formatting/style fixes

Neal Wu 8 years ago
parent
commit
08bf19d263
1 changed files with 3 additions and 4 deletions
  1. 3 4
      inception/inception/data/build_image_data.py

+ 3 - 4
inception/inception/data/build_image_data.py

@@ -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())