facebookresearch / playtorch

PlayTorch is a framework for rapidly creating mobile AI experiences.
https://playtorch.dev/
MIT License
830 stars 101 forks source link

How to specify interpolation in transforms.resize? #203

Open kevinz8866 opened 1 year ago

kevinz8866 commented 1 year ago

Area Select

react-native-pytorch-core (core package)

Description

Hi,

So I wish to change the interpolation argument when using the resize() function in the transforms interface. The current default seems to be transforms.InterpolationMode.BOX. But as I supplied transforms.InterpolationMode.BICUBIC, it raised error saying that this object is undefined. So how should I change the interpolation when using resize()? Is this functionality currently supported? Thanks!!