Skip to content

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

@adamjstewart

Description

@adamjstewart

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 pytorch/vision#5898 and huggingface/pytorch-image-models#1256.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions