diff --git a/chainercv/utils/image/read_image.py b/chainercv/utils/image/read_image.py index 4d685d2b14..a702526fa3 100644 --- a/chainercv/utils/image/read_image.py +++ b/chainercv/utils/image/read_image.py @@ -1,5 +1,7 @@ import numpy as np from PIL import Image +from PIL import ImageFile +ImageFile.LOAD_TRUNCATED_IMAGES = True def read_image(path, dtype=np.float32, color=True):