pytorch-cutpaste icon indicating copy to clipboard operation
pytorch-cutpaste copied to clipboard

a hidden bug about image_size

Open ShuaiLYU opened this issue 3 years ago • 1 comments

Dear Runinho,

I found that you use " h = img.size[0] w = img.size[1]" in the cutpaste.py. I think it should be " w = img.size[0] h = img.size[1]" here. the reason the bug haven't been triggered is that the images used in this dataet have same width and height.

Amending the bug is appreciated.

Thanks and Best Regards.

ShuaiLYU avatar Jul 01 '22 06:07 ShuaiLYU

Hi,

Can you create a pull request with the changes you propose?

Thanks, Runinho

Runinho avatar Jul 03 '22 08:07 Runinho