pytorch torchvision.transforms.Resize

API

CLASS torchvision.transforms.Resize(size, interpolation=2)
参数 描述
size (sequence or int) 如果size是sequence(h,w),则输出为此尺寸:如果size是int,则暗比例缩放
interpolation (int, optional) 插值方法,默认是双线性

参考:
https://pytorch.org/docs/stable/torchvision/transforms.html#torchvision.transforms.Resize
https://blog.csdn.net/w55100/article/details/88415637

你可能感兴趣的:(Python,python)