From 4752a2dcd5a94ad23151451fea6eb521a1133f25 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Santiago=20P=C3=A9rez=20Pita?= Date: Mon, 22 Jan 2024 12:48:54 +0100 Subject: [PATCH] Use Image.BILINEAR instead of Image.LINEAR which is deprecated. This commit solve the issue discussed here: https://github.com/facebookresearch/detectron2/issues/5010 For `windows` branch --- detectron2/data/transforms/transform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/detectron2/data/transforms/transform.py b/detectron2/data/transforms/transform.py index de44b991d7..46769a2569 100644 --- a/detectron2/data/transforms/transform.py +++ b/detectron2/data/transforms/transform.py @@ -43,7 +43,7 @@ class ExtentTransform(Transform): See: https://pillow.readthedocs.io/en/latest/PIL.html#PIL.ImageTransform.ExtentTransform """ - def __init__(self, src_rect, output_size, interp=Image.LINEAR, fill=0): + def __init__(self, src_rect, output_size, interp=Image.BILINEAR, fill=0): """ Args: src_rect (x0, y0, x1, y1): src coordinates