Skip to content

Commit

Permalink
Fix PIL.ANTIALIAS deprecation (#11801)
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Jul 2, 2023
1 parent 0004c74 commit d19439a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d19439a

Please sign in to comment.