naver / garnet

Apache License 2.0
58 stars 7 forks source link

Resize Bug #9

Open HanSeokhyeon opened 1 year ago

HanSeokhyeon commented 1 year ago

Thank you for your work. I found a bug in resizing process.

https://github.com/naver/garnet/blob/master/CODE/inference.py#L112

CODE/inference.py

img = cv2.resize(img, (H, W))

H and W are reversed. if it run with (H, W), image saved with the wrong ratio.

CODE/inference.py

img = cv2.resize(img, (W, H))

It works correctly. If I can contribute this project, I want to make a PR.