opencv / opencv_contrib

Repository for OpenCV's extra modules
Apache License 2.0
9.4k stars 5.76k forks source link

Segmentation fault (core dumped) #1434

Open yangguang-v opened 6 years ago

yangguang-v commented 6 years ago
System information (version)
Detailed description
Steps to reproduce
mshabunin commented 6 years ago

@yangguang-v , please add more details.

yangguang-v commented 6 years ago

I've done the learn_color_balance.py successfully on the Gehler-Shi dataset , but when I evaluate the effect of the learn_based:color_balance_model, I carry out following order:

python color_balance_benchmark.py -a grayworld,learning_based:color_balance_model.yml -m /home/lvwj/White_balance  -i /home/lvwj/White_balance/png_canon -g /home/lvwj/White_balance/groundtruth_568/ real_illum_568..mat  -r 379,567 -d "img"

then, have an error: Done Segmentation fault (core dumped)

And I can't find any error in the color_balance_benchmark.py. Thanks.

yangguang-v commented 6 years ago

when inst = cv2.xphoto.createLearningBasedWB(model_path)
is modified to inst = cv2.xphoto.createLearningBasedWB() , this problem will be solved.

davidlavy88 commented 6 years ago

@yangguang-v if you modify to: inst = cv2.xphoto.createLearningBasedWB() you're not using the model_path that you trained in the first part. I'm also having this issue and I don't know how to solve it.