Learning-to-See-in-the-Dark icon indicating copy to clipboard operation
Learning-to-See-in-the-Dark copied to clipboard

error in test_Sony.py

Open PeterStone007 opened this issue 7 years ago • 12 comments

after download and extract raw Sony data in dir dataset/Sony. run test_Sony.py got error at line 151: im = raw.postprocess(use_camera_wb=True, half_size=False, no_auto_bright=True, output_bps=16)

rawpy._rawpy.LibRawFatalError: b'Unsufficient memory' could you have met this? Appreciate for answer.

PeterStone007 avatar Jul 10 '18 04:07 PeterStone007

Never met this error before. How large is your RAM?

cchen156 avatar Jul 10 '18 04:07 cchen156

32Gb. I also run the code with another pc with 64Gb, got the error again.. it so confuse me.

PeterStone007 avatar Jul 10 '18 04:07 PeterStone007

@cchen156

PeterStone007 avatar Jul 10 '18 04:07 PeterStone007

I am not sure what the problem is because I am not able to reproduce the error. Can you try output_bps=8?

cchen156 avatar Jul 10 '18 22:07 cchen156

I received the same error. I changed the 'half_size' parameter to True and it worked. I don't understand why, because I have enough RAM on my computer.

danielberbece avatar Jul 11 '18 08:07 danielberbece

My GPU memory is 12GB,the same error as you, i follow the danielberbece‘s advice,but the result is absolutely wrong

ninesun127 avatar Jul 12 '18 13:07 ninesun127

Maybe there is a bug in the new version of Rawpy. Which version did you use? @PeterStone007 @danielberbece @ninesun127

cchen156 avatar Jul 12 '18 16:07 cchen156

I am using 0.10.1 and I cannot reproduce the error.

cchen156 avatar Jul 12 '18 16:07 cchen156

0.11.0 it is a really terrible thing~

ninesun127 avatar Jul 13 '18 02:07 ninesun127

@cchen156 yeah,when i download the rawpy 0.10.1, there is no error when running。genuinely thanks for your patient reply.

as you said,there is a bug in the new version of Rawpy.

ninesun127 avatar Jul 13 '18 05:07 ninesun127

yes, downgrading from 0.11.0 to 0.10.0 solved the issue for me too

danielberbece avatar Jul 13 '18 07:07 danielberbece

I believe this is an issue in LibRaw, which is what rawpy is using. See https://github.com/LibRaw/LibRaw/issues/171

kvaggelakos avatar Jul 13 '18 14:07 kvaggelakos