Browse Source

Set PIL.Image.MAX_IMAGE_PIXELS = None for large images

Kentaro Wada 5 năm trước cách đây
mục cha
commit
df56f13eea
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      labelme/label_file.py

+ 3 - 0
labelme/label_file.py

@@ -12,6 +12,9 @@ from labelme import QT4
 from labelme import utils
 
 
+PIL.Image.MAX_IMAGE_PIXELS = None
+
+
 class LabelFileError(Exception):
     pass