facebookresearch / deepmask

Torch implementation of DeepMask and SharpMask

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Failed to run pretrained SharpMask with testImage.jpg

MattZhz opened this issue · comments

Hi everyone,
the Quick Start of pretrained Deepmask runs successfully, but I am getting this error when running the pretrained SharpMask:

#MattZhz@MatM:~/projects/deepseg/deepmask-master$ th computeProposals.lua /home/MattZhz/projects/deepseg/deepmask-master/pretrained/sharpmask
Found Environment variable CUDNN_PATH = /home/MattZhz/libraries/cudnn-7.5-v5.0/cuda/lib64/libcudnn.so.5
| loading model file... /home/MattZhz/projects/deepseg/deepmask-master/pretrained/sharpmask
| start
| config.img:   data/testImage.jpg
/home/MattZhz/libraries/torch/install/bin/luajit: bad argument #2 to '?' (out of range at /home/MattZhz/libraries/torch/pkg/torch/generic/Tensor.c:890)
stack traceback:
        [C]: at 0x7f497b66dd60
        [C]: in function '__index'
        ...tZhz/projects/deepseg/deepmask-master/InferSharpMask.lua:263: in function 'getTopScores'
        ...tZhz/projects/deepseg/deepmask-master/InferSharpMask.lua:130: in function 'forward'
        computeProposals.lua:87: in main chunk
        [C]: in function 'dofile'
        ...ries/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
        [C]: at 0x00405d50

Help is much appreciated!
Thanks.
Matt

commented

Hi, can you share line 87 from your computeProposals.lua file?