mmgeneration
mmgeneration copied to clipboard
height and width in Resize pipeline are misplaced
Reproduction
from mmgen.datasets.pipelines import Resize, LoadImageFromFile
results = {'real_img_path': 'path-to-img/0001.jpg'}
t = LoadImageFromFile(key='real_img', io_backend='disk')(results)
tt = Resize(keys=['real_img'], scale=(128, 32), keep_ratio=False)(t)
Bug fix I think it's because mmcv.imresize uses (width, heights) for the scale argument.
Hey @makecent , thanks for your interest in our project. We will fix this recently. We would also be glad that if you could create a pull request to fix this.
Hey @makecent , thanks for your interest in our project. We will fix this recently. We would also be glad that if you could create a pull request to fix this.
I just made a PR.