KaiyangZhou / Dassl.pytorch

A PyTorch toolbox for domain generalization, domain adaptation and semi-supervised learning.
MIT License
1.23k stars 171 forks source link

change Image.BILINEAR to InterpolationMode.BILINEAR #40

Closed siaimes closed 2 years ago

siaimes commented 2 years ago

for python warnnings: /opt/conda/lib/python3.7/site-packages/torchvision/transforms/transforms.py:288: UserWarning: Argument interpolation should be of type InterpolationMode instead of int. Please, use InterpolationMode enum.

"Argument interpolation should be of type InterpolationMode instead of int. "

Signed-off-by: siaimes 34199488+siaimes@users.noreply.github.com