facebookresearch / deepmask

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

Segmentation fault (core dumped) #90

Open montyhall opened 7 years ago

montyhall commented 7 years ago

i am getting the following segmentation fault on the repo testImage.jpg

cuda2[deepmask]$  th computeProposals.lua $DEEPMASK/pretrained/deepmask -img data/testImage.jpg 
| loading model file... /scratch/deepmask//pretrained/deepmask   
| start 
Segmentation fault (core dumped)

following a recommendation I am scaling the image as follows (otherwise i get out of memory error).

-- load image
local img = image.load(config.img)
local h,w = img:size(2),img:size(3)
img=image.scale(img,w/4,h/4)

-- forward all scales
infer:forward(img)

running on GeForce GTX TITAN Z (12 GB memory)

thank you