caffe
caffe copied to clipboard
Any Interest in Adding Sampling Parameter to compute_image_mean?
I'm working with a large dataset and notice that compute_image_mean is taking awhile, when I doubt I need such an exact mean. Would there be any interest in adding a command line argument to compute_image_mean which specifies a proportion of the dataset to consider in computing the mean? Something like a sample_prob argument in (0,1], and adding something like:
DEFINE_double(sample_prob,1.0,"Proportion of the dataset to consider when computing mean")
before the main function and
if ((double) rand()/RAND_MAX > sample_prob) {
continue;
}
at the beginning of the loop iterating over the database?
If there is interest...
I'd be happy to make a pull request.
Are there any opinions on what a better name than sample_prob might be?