google / sg2im

Code for "Image Generation from Scene Graphs", Johnson et al, CVPR 2018
Apache License 2.0
1.29k stars 230 forks source link

I find some mistake in your code #5

Closed yokiqust closed 5 years ago

yokiqust commented 5 years ago

mask = imresize(255 * mask, (self.mask_size, self.mask_size), mode='constant') in the coco.py line 281, in there should use 255.0, when use a integer, the following mask will be a 0 matrix.

jcjohnson commented 5 years ago

Thanks for pointing this out! Fixed in https://github.com/google/sg2im/commit/26383737500a2855e772637a222bb0a871034f0d