pretrained-models.pytorch icon indicating copy to clipboard operation
pretrained-models.pytorch copied to clipboard

DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10

Open adamjstewart opened this issue 2 years ago • 1 comments

When running pytest with the latest version of Pillow, you'll see:

../../../anaconda/envs/adam-py37-min/lib/python3.7/site-packages/pretrainedmodels/datasets/utils.py:33
  /anaconda/envs/adam-py37-min/lib/python3.7/site-packages/pretrainedmodels/datasets/utils.py:33: DeprecationWarning: BILINEAR is deprecated and will be removed in Pillow 10 (2023-07-01). Use Resampling.BILINEAR instead.
    def __init__(self, size, interpolation=Image.BILINEAR):

This attribute was moved to an enum in Pillow 9.1 and the old attribute will be removed in Pillow 10. We should update this soon.

Related to https://github.com/pytorch/vision/pull/5898 and https://github.com/rwightman/pytorch-image-models/pull/1256.

adamjstewart avatar Jun 15 '22 06:06 adamjstewart

您的邮件已收到!

Fzz123 avatar Jun 15 '22 06:06 Fzz123