Skip to content

Visual noise being introduced by Bicubic interpolation #21044

@mdlockyer

Description

@mdlockyer

🐛 Bug

It seems that the new Bicubic interpolation is introducing some noise/artifacts into images.

To Reproduce

gist that demonstrates the issue.

Expected behavior

The image should look great! Bicubic interp rocks. Obviously there are plenty of examples out there(e.g., OpenCV, Pillow,...).

Environment

PyTorch version: N/A
Is debug build: N/A
CUDA used to build PyTorch: N/A

OS: Mac OSX 10.14.4
GCC version: Could not collect
CMake version: Could not collect

Python version: 3.6
Is CUDA available: N/A
CUDA runtime version: Could not collect
GPU models and configuration: Could not collect
Nvidia driver version: Could not collect
cuDNN version: Could not collect

Versions of relevant libraries:
[pip3] numpy==1.16.3
[pip3] torch==1.1.0
[conda] blas 1.0 mkl
[conda] mkl 2019.3 199
[conda] mkl-service 1.1.2 py37hfbe908c_5
[conda] mkl_fft 1.0.10 py37h5e564d8_0
[conda] mkl_random 1.0.2 py37h27c97d8_0

Additional context

Here is the original image:
dog
And the result when using Bicubic interpolation:
bad_dog
Same image using Bilinear interpolation:
good_dog

Metadata

Metadata

Assignees

Labels

triagedThis issue has been looked at a team member, and triaged and prioritized into an appropriate module

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions