From 5be678a80aa8510431a61e72f8bbe648015fb07c Mon Sep 17 00:00:00 2001 From: Nouran Ali Date: Wed, 15 May 2024 14:01:28 +0300 Subject: [PATCH] solves can't load TRUNCATED_IMAGES in windows --- labelme/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/labelme/app.py b/labelme/app.py index 9a83a3711..a7b3707d2 100644 --- a/labelme/app.py +++ b/labelme/app.py @@ -32,6 +32,7 @@ from labelme.widgets import ToolBar from labelme.widgets import UniqueLabelQListWidget from labelme.widgets import ZoomWidget +from PIL import ImageFile from . import utils @@ -43,7 +44,7 @@ LABEL_COLORMAP = imgviz.label_colormap() - +ImageFile.LOAD_TRUNCATED_IMAGES = True class MainWindow(QtWidgets.QMainWindow): FIT_WINDOW, FIT_WIDTH, MANUAL_ZOOM = 0, 1, 2