diff --git a/bin/dpmcreate.c b/bin/dpmcreate.c index 3a03e45ef..36fbf220b 100644 --- a/bin/dpmcreate.c +++ b/bin/dpmcreate.c @@ -17,16 +17,16 @@ void exit_with_help() "\t--symmetric : 0 or 1, whether to exploit symmetric property of the object\n\n" "\033[1mOTHER OPTIONS\033[0m\n" "\t--base-dir : change the base directory so that the program can read images from there\n" - "\t--iterations : how many iterations needed for stochastic gradient descent [DEFAULT TO 1000]\n" - "\t--data-minings : how many data mining procedures are needed for discovering hard examples [DEFAULT TO 50]\n" + "\t--iterations : how many iterations are needed for stochastic gradient descent [DEFAULT TO 1000]\n" + "\t--data-minings : how many data mining procedures are needed for discovering hard examples [DEFAULT TO 100]\n" "\t--relabels : how many relabel procedures are needed [DEFAULT TO 5]\n" - "\t--alpha : the step size for stochastic gradient descent [DEFAULT TO 0.1]\n" - "\t--alpha-ratio : decrease the step size for each iteration [DEFAULT TO 0.99]\n" + "\t--alpha : the step size for stochastic gradient descent [DEFAULT TO 0.01]\n" + "\t--alpha-ratio : decrease the step size for each iteration [DEFAULT TO 0.995]\n" "\t--margin-c : the famous C in SVM [DEFAULT TO 0.002]\n" - "\t--balance : to balance the weight of positive examples and negative examples [DEFAULT TO 1.75]\n" - "\t--negative-cache-size : the cache size for negative examples it should be smaller than negative-count and larger than 100 [DEFAULT TO 1000]\n" + "\t--balance : to balance the weight of positive examples and negative examples [DEFAULT TO 1.5]\n" + "\t--negative-cache-size : the cache size for negative examples it should be smaller than negative-count and larger than 100 [DEFAULT TO 2000]\n" "\t--include-overlap : the percentage of overlap between expected bounding box and the bounding box from detection. Beyond this threshold, it is ensured to be the same object [DEFAULT TO 0.7]\n" - "\t--grayscale : 0 or 1, whether to exploit color in a given image [DEFAULT TO 1]\n" + "\t--grayscale : 0 or 1, whether to exploit color in a given image [DEFAULT TO 0]\n" "\t--percentile-breakdown : 0.00 - 1.00, the percentile use for breakdown threshold [DEFAULT TO 0.05]\n" ); exit(-1); diff --git a/bin/dpmdetect.c b/bin/dpmdetect.c index 5017811bd..3ced71587 100644 --- a/bin/dpmdetect.c +++ b/bin/dpmdetect.c @@ -17,7 +17,7 @@ int main(int argc, char** argv) ccv_dense_matrix_t* image = 0; ccv_read(argv[1], &image, CCV_IO_ANY_FILE); ccv_dpm_mixture_model_t* model = ccv_load_dpm_mixture_model(argv[2]); - ccv_dpm_param_t params = { .interval = 8, .min_neighbors = 1, .flags = 0, .threshold = 0.3 }; + ccv_dpm_param_t params = { .interval = 8, .min_neighbors = 1, .flags = 0, .threshold = 0.4 }; if (image != 0) { unsigned int elapsed_time = get_current_time(); diff --git a/lib/ccv_dpm.c b/lib/ccv_dpm.c index 21d006e0e..4b5b4565b 100644 --- a/lib/ccv_dpm.c +++ b/lib/ccv_dpm.c @@ -1304,7 +1304,7 @@ static void _ccv_dpm_adjust_model_constant(ccv_dpm_mixture_model_t* model, ccv_d float adjust = scores[ccv_clamp((int)(percentile * j), 0, j - 1)]; // adjust to percentile model->root[k].beta -= adjust; - printf(" - tune model %d constant for %f\n", k, -adjust); + printf(" - tune model %d constant for %f\n", k + 1, -adjust); } ccfree(scores); }