赞
踩
《ncnn数据归一化和结果解析》
近两年都在使用ncnn进行工程化部署,这里记录一下ncnn进行数据归一化的运算,以及得到的结果ncnn::Mat如何解析。
Key Words:ncnn、数据归一化、结果解析
Beijing, 2020
// for color image
const float mean_vals[3] = {
127.5f, 127.5f, 127.5f};
const float norm_vals[3] = {
0.007843f, 0.007843f, 0.007843f};
// for gray image
const float mean_vals[1] = {
0};
const float norm_vals[1] =
赞
踩
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。