Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

请问caffe中的xxx_mean.npy 该怎么处理? #66

Closed
huanyingjun opened this issue Jul 31, 2017 · 1 comment
Closed

请问caffe中的xxx_mean.npy 该怎么处理? #66

huanyingjun opened this issue Jul 31, 2017 · 1 comment

Comments

@huanyingjun
Copy link

在例子中看到,
const float mean_vals[3] = {104.f, 117.f, 123.f};
in.substract_mean_normalize(mean_vals, 0);
对于caffe中的xxx_mean.npy 该怎么处理?
将数据读出来,放到一段float 的buffer中,然后调 substract_mean_normalize ?

@nihui
Copy link
Member

nihui commented Aug 1, 2017

mean blob 方式的 substract_mean_normalize 没有支持,需要自己实现减均值...
因为手机上对模型大小也挺苛刻的,通常建议用 mean value 代替 mean blob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants