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

Doubts about Mean and Norm parameters #15

Closed
ricardotapiador opened this issue Oct 4, 2018 · 6 comments
Closed

Doubts about Mean and Norm parameters #15

ricardotapiador opened this issue Oct 4, 2018 · 6 comments

Comments

@ricardotapiador
Copy link

Hello,
Your tool is quite interesting. However i dont understand the parameters of Mean and Norm.
Is Mean the average of weights ?

Kind regards

@BUG1989
Copy link
Owner

BUG1989 commented Oct 4, 2018

@ricardotapiador mean or norm value, is based on your training dataset.
mean is the average of training dataset;
norm is the scale of training dataset,sometimes do not use is,default value is 1.0.

@BUG1989 BUG1989 closed this as completed Nov 21, 2018
@WIll-Xu35
Copy link

@BUG1989 Hi, I'm still confused about mean and norm.

About mean, what order should I use, BGR or RGB.

About norm, I still can't understand what does it mean? Is it the average norm of each channel? Say if I have a dataset of images, how can I determine the value of norm?

Thanks

@BUG1989
Copy link
Owner

BUG1989 commented Feb 25, 2019

@WIll-Xu35
example,in the mobilenet_v1.prototxt file

name: "MOBILENET"
#  transform_param {
#    scale: 0.017
#    mirror: false
#    crop_size: 224
#    mean_value: [103.94,116.78,123.68]
#  }

mean : the order of mean is depend on you train model
norm : the mean is scale value,default is 1

@BUG1989 BUG1989 reopened this Feb 25, 2019
@BUG1989 BUG1989 closed this as completed Feb 25, 2019
@BUG1989 BUG1989 pinned this issue Feb 25, 2019
@WIll-Xu35
Copy link

@BUG1989

I couldn't find this transform_param in my prototxt file.

Can I understand it in this way, mean and norm are the preprocessing parameters we use to preprocess our image data input.

For example, when i train the model, each raw input pixel is firstly minus 127.5, multiplied by 0.0078125, and then feed into the model and used to do the training. So the mean should be [127.5, 127.5, 127.5], the norm should be 0.0078125. Is this understanding correct?

Thank you.

@BUG1989
Copy link
Owner

BUG1989 commented Feb 26, 2019

@WIll-Xu35
Yes, that's right,maybe my expression confused you : )

@WIll-Xu35
Copy link

@BUG1989
Thank you for your quick reply and your awesome codes:)

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

3 participants