Problem using xphoto::LearningBasedWB
Hi,
I'm trying to run the tutorial provided here. The training model works just fine. However, when I do the testing I always get a segmentation fault. And this is due to using the learning based model.
I went and created a simple test using the .yml file created from the training test here. Uploaded any picture and I get the same segmentation error. Debugging the code it seems the error is in this line:
wb->balanceWhite(img, img_out);
But I have no idea why this error shows up. Any help is appreciated.
Thanks!
and your error is ?
The same "Segmentation fault (core dumped)"
Something that I'm realizing is that I think the WhiteBalance pointer is not using the yml I'm referencing. If I switch the line from:
wb = xphoto::createLearningBasedWB("./color_balance_model.yml");
To:
wb = xphoto::createLearningBasedWB();
The latter is using a default model, but not the one I trained. And it works just fine. I can't find a way to check that my model is using the yml file. If I use any string as input the code doesn't show any error. And I think that is where the problem is, because it's not using the input yml file.
can you put your yml file somewhere, so folks can test ?
Here it is: https://drive.google.com/file/d/1_5PU...