coremltools icon indicating copy to clipboard operation
coremltools copied to clipboard

Support BICUBIC interpolation for image resizing

Open JarnoRFB opened this issue 1 year ago • 2 comments

How can this feature be used?

Bicubic image resizing is useful when requiring a resizing method that preserves higher quality, e.g. for object detection, and is implemented as a basic operation in Frameworks such as PyTorch.

Describe alternatives you've considered

Using bilinear interpolation.

Additional context

Other issues that might be related:

  • https://github.com/apple/coremltools/issues/1747

JarnoRFB avatar Sep 10 '24 17:09 JarnoRFB

This seems like the exact same request as #1747.

@JarnoRFB - how is this different than that?

TobyRoseman avatar Sep 12 '24 20:09 TobyRoseman

@TobyRoseman Not entirely sure. #1747 talked to about the upsampling and I am particularly interested in downsampling. This is beyond my Pytorch knowledge, but could be that downsampling is supported via the upsample_bicubic2d operator.

JarnoRFB avatar Sep 13 '24 08:09 JarnoRFB