facebookresearch / deepmask

Torch implementation of DeepMask and SharpMask
Other
3.11k stars 507 forks source link

Crash for grayscale images #108

Open kmerkelbach opened 7 years ago

kmerkelbach commented 7 years ago

Hi,

I noticed that SharpMask crashes for grayscale images. Out of the COCO-Stuff images, it crashed for the following files:

The stack trace is as follows: ~/src/sharpmask/InferSharpMask.lua:96: bad argument #1 to 'copy' (sizes do not match at /tmp/luarocks_cutorch-scm-1-547/cutorch/lib/THC/THCTensorCopy.cu:31) stack traceback: [C]: in function 'copy' /work2/merkelbach/src/sharpmask/InferSharpMask.lua:96: in function 'forward' ...elbach/src/sharpmask/computeProposalsMerkelbach_test.lua:131: in main chunk [C]: in function 'dofile' .../src/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:150: in main chunk [C]: at 0x00406670