seanbell / intrinsic

Code for Bell et al, "Intrinsic Images in the Wild", SIGGRAPH 2014.
MIT License
153 stars 33 forks source link

Aborted (core dumped) error #7

Open philleer opened 5 years ago

philleer commented 5 years ago

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.

seanbell commented 5 years ago

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.

philleer commented 5 years ago

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?