Skip to content

Commit 8aaadf1

Browse files
authored
Replace deprecated PIL.Image.LINEAR with PIL.Image.BILINEAR
The Pillow 10.0.0 is released on July 1 and deprecated PIL.Image.LINEAR in favor or PIL.Image.BILINEAR. See [detectron2 issue](facebookresearch/detectron2#5010) for the fix
1 parent 36c7d00 commit 8aaadf1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

detectron2/data/transforms/transform.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ExtentTransform(Transform):
4343
See: https://pillow.readthedocs.io/en/latest/PIL.html#PIL.ImageTransform.ExtentTransform
4444
"""
4545

46-
def __init__(self, src_rect, output_size, interp=Image.LINEAR, fill=0):
46+
def __init__(self, src_rect, output_size, interp=Image.BILINEAR, fill=0):
4747
"""
4848
Args:
4949
src_rect (x0, y0, x1, y1): src coordinates

0 commit comments

Comments
 (0)