Skip to content

Specify interpolation mode for downscale and upscale explicitly

I got this warning message while trying to train DAN (teklia-dan train document)

/home/users/mblanco/dan/lib/python3.10/site-packages/albumentations/augmentations/transforms.py:1692: UserWarning: Using default interpolation INTER_NEAREST, which is sub-optimal.Please specify interpolation mode for downscale and upscale explicitly.For additional information see this PR https://github.com/albumentations-team/albumentations/pull/584
  warnings.warn(