You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my case, I set a mean value manually in the code, when running detection successfully
DEFINE_string(mean_value, "85", // I used gray image (1 channel)
"If specified, can be one value or can be same as image channels"
" - would subtract from the corresponding channel). Separated by ','."
"Either mean_file or mean_value should be provided, not both.");
If you set "mean_value", when you reBuild "ssd_detect" project, you don't need to meet those code line.
thanks for your source code, that is great.
is some error in function setmean;
the net input std::vectorcv::Mat channels;
float* data = mean_blob.mutable_cpu_data();
for (int i = 0; i < num_channels_; ++i) {
/* Extract an individual channel. */
cv::Mat channel(mean_blob.height(), mean_blob.width(), CV_32FC1, data);
channels.push_back(channel);
data += mean_blob.height() * mean_blob.width();
}
When we merge the channels to mean, why do we also request the entire image of mean,(channel_mean = cv::mean(mean_))?
The text was updated successfully, but these errors were encountered: