MobileNet icon indicating copy to clipboard operation
MobileNet copied to clipboard

Accuracy difference on PC and Phone

Open bis-carbon opened this issue 7 years ago • 2 comments

Hello everyone, I have a question. Which is I used MobileNets for classification purpose and implemented it on android and PC, the problem is I get different prediction values on android and PC (linux) for the same picture and model. The difference is magnitude of 5% on average. What can cause this difference ? Is it because of the different decoding technique used on phone and PC?

I check the input tensor in to MobileNets on phone and PC and I found some differences on the pixel values.

bis-carbon avatar Aug 30 '17 22:08 bis-carbon

I have meet the same problem,have you fixed the problem?

gxdalu-yaya avatar Oct 30 '17 06:10 gxdalu-yaya

I did run some experiments and the noise seems to come from bilinear down scaling operation used. Both java and tf implementations use bilinear method to downscale input image to 224x224, unfortunately there is slight difference in the down scaled image. The reason is cropping ratio and other parameters used to downscale input image are different for Java and TF.

bis-carbon avatar Oct 30 '17 18:10 bis-carbon