Commit 9f8e66c4 authored by Jordi Inglada's avatar Jordi Inglada

BUG: avoid explicit conversion to bool

parent 7be96f4c
......@@ -288,7 +288,7 @@ void TrainImagesClassifier::DoExecute()
sampleGenerator->SetMaxTrainingSize(GetParameterInt("sample.mt"));
sampleGenerator->SetMaxValidationSize(GetParameterInt("sample.mv"));
sampleGenerator->SetValidationTrainingProportion(GetParameterFloat("sample.vtr"));
sampleGenerator->SetBoundByMin(GetParameterInt("sample.bm"));
sampleGenerator->SetBoundByMin(GetParameterInt("sample.bm")!=0);
// take pixel located on polygon edge into consideration
if (IsParameterEnabled("sample.edg"))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment