Skip to content

Commit 4752a2d

Browse files
author
Santiago Pérez Pita
committed
Use Image.BILINEAR instead of Image.LINEAR which is deprecated.
This commit solve the issue discussed here: facebookresearch#5010 For `windows` branch
1 parent 57e9a63 commit 4752a2d

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)