From d19439afeba525a351705d03c3ea1a6f0465ef8b Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Mon, 3 Jul 2023 01:48:43 +0200 Subject: [PATCH] Fix PIL.ANTIALIAS deprecation (#11801) --- models/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/common.py b/models/common.py index 16537703e730..a0ee085d05fc 100644 --- a/models/common.py +++ b/models/common.py @@ -541,7 +541,7 @@ def forward(self, im, augment=False, visualize=False): elif self.coreml: # CoreML im = im.cpu().numpy() im = Image.fromarray((im[0] * 255).astype('uint8')) - # im = im.resize((192, 320), Image.ANTIALIAS) + # im = im.resize((192, 320), Image.BILINEAR) y = self.model.predict({'image': im}) # coordinates are xywh normalized if 'confidence' in y: box = xywh2xyxy(y['coordinates'] * [[w, h, w, h]]) # xyxy pixels