Closed rivaldo4t closed 8 years ago
As name tells, set mean values for mean subtraction. And also, code tells you the truth. Thanks.
A little weak on the concepts here. Why is mean subtraction required in evaluation of a net?
IMHO, this is not weird for following the same preprocessing protocol as in the training.
Note: the "mean" here is not from your test image, it's the one used in the model training.
Yes I figured that. The mean values are set to some seemingly random values in the demo code.
float[] meanValues = {104, 117, 123}; caffeMobile.setMean(meanValues);
This is what does not make sense to me. What are these values.
Ok; not random. Still not clear on the WHY part.
Is it because we have trained the network on transformed images (mean subtracted) by these mean values and we must transform the test image in the same way during the evaluation phase?
Exactly.
Okay, thanks.
Kindly let me know what this function does.