Skip to content

Commit

Permalink
minor text change
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Jun 26, 2012
1 parent 9aee732 commit 1bff68a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions bin/dpmcreate.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion bin/dpmdetect.c
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion lib/ccv_dpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 1bff68a

Please sign in to comment.