Explorar o código

Formatting/style fixes

Neal Wu %!s(int64=8) %!d(string=hai) anos
pai
achega
08bf19d263
Modificáronse 1 ficheiros con 3 adicións e 4 borrados
  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())