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.
When running pytest with the latest version of Pillow, you'll see:
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.