intrinsic icon indicating copy to clipboard operation
intrinsic copied to clipboard

Aborted (core dumped) error

Open philleer opened this issue 6 years ago • 2 comments

Hi, @seanbell

I have just make it work normally, but now i have another confusion about the memory, seems the code is very memory consuming

terminate called after throwing an instance of 'std::bad_alloc'
  what():  std::bad_alloc
Aborted (core dumped)

have you ever noticed such problem?

I have run it with png format picture

148.7 kB
321.0 kB
824.7 kB

even for such picture my 7.7 GB computer memory struggles to work

does dense crf cost the computation intrinsically? or I didn't config it correctlly?

What should i do to make it work for my picture (1.2 MB or even 10 MB)? Downsample?

Much thx for your immediate reply.

philleer avatar Jun 17 '19 02:06 philleer

The parameters in the algorithm are generally calibrated for a certain size image, so large images won't work as well. I suggest resizing them proportionally so that the larger image dimension is 512.

seanbell avatar Jun 17 '19 05:06 seanbell

okay, thank you for your response! I will try it later.

And maybe i'll still try to change some parameters after that, i think so would you please give me some advise which parameter i should adjust?

philleer avatar Jun 17 '19 13:06 philleer