Fixed warning in torchvision.models.detection.transforms._resize_image_and_masks. (#3237)
* Fixed warning.
UserWarning: The default behavior for interpolate/upsample with float scale_factor changed in 1.6.0 to align with other frameworks/libraries, and now uses scale_factor directly, instead of relying on the computed output size. If you wish to restore the old behavior, please set recompute_scale_factor=True. See the documentation of nn.Upsample for details.
* Aligned _resize_image_and_masks_onnx.
Co-authored-by:
Francisco Massa <fvsmassa@gmail.com>
Showing
Please register or sign in to comment