mxnet icon indicating copy to clipboard operation
mxnet copied to clipboard

How to get or generate the mean_image?

Open catmonkeylee opened this issue 11 years ago • 4 comments

When I read the notebook 'Use Pretrained Inception-BatchNorm Network', I don't know how to get the mean_image :

load mean image

mean_img = mx.nd.load("Inception/mean_224.nd")["mean_img"]

It was generated when train the imagenet? When I read the alexnet, I can not find the code that generated the mean_img. If I used my images to train the model, How to generate the mean image.

catmonkeylee avatar Nov 17 '15 14:11 catmonkeylee

The image iterator will automatically calculate/load mean file if you set mean_file="xxxxx". see #371

austingg avatar Nov 17 '15 14:11 austingg

Thanks, I read the source code, in train process the mean_file path is not exists, so will automatically caculate the file and save the mean. in test process the mean_file path is exists, so will load and use the mean.

catmonkeylee avatar Nov 17 '15 15:11 catmonkeylee

Thanks a lot!

ysh329 avatar Mar 16 '17 07:03 ysh329

subscribe

mcxkarakoc avatar Mar 20 '17 12:03 mcxkarakoc