Closed zhiyong1997 closed 6 years ago
Hi, Rowan, Thanks for sharing your code. I've noticed maybe a small bug. In __visual_genome.py, getitem__ function:
w, h = image_unpadded.size if h > w: im_size = (IM_SCALE, int(w * img_scale_factor), img_scale_factor) else: ...
why the order of w & h is reversed?
I'm not very sure because I've not read the code thoroughly. If this is a bug, will it influence the following codes?
Thanks!
Oh, I guess it's because pytorch vgg models expects H, W format, sorry for bother.
Hi, Rowan, Thanks for sharing your code. I've noticed maybe a small bug. In __visual_genome.py, getitem__ function:
why the order of w & h is reversed?
I'm not very sure because I've not read the code thoroughly. If this is a bug, will it influence the following codes?
Thanks!