hityzy1122 / opencv_transforms_torchvision

opencv reimplement for transforms in torchvision
MIT License
193 stars 29 forks source link

For the function "resize" in cvfunctional.py #14

Closed caddyless closed 4 years ago

caddyless commented 4 years ago

I found a issue in this code. The function resize in cvfunctional.py works wrong. image As show in the picture above, the position of "ow" and "oh" is reversal. With the reshape operation here, this operation cause strange error like: image image It will produce totally wrong result. By exchanging their position, it works as expected.