hewumars
6/18/2019 - 10:03 AM

Atlas300实验:模型验证caffe_npu推理误差

注:

  1. 图像预处理部分存在差异ImagePreProcess_1使用DVPP进行resizeImagePreProcessPillow_1使用OpenCV进行resize
  2. 模型差异:npu推理是模型进过AIPP进行融合预处理后的模型
  3. 模型转成json来统计memory_size和weight_size的内存用量 omg --mode=1 --om=VehicleType_16b.om --json=./VehicleType_16b.json
模型余弦距离最大绝对误差相对欧氏距离标准差
Pedestrian0.98238840.0270.18713343(0.027,0.027)(0.026,0.028)
PedestrainGlobal0.98980 - 0.239
indexCompareFile1CompareFile2CosineSimilarityMaxAbsoluteErrorRelativeEuclideanDistanceStandardDeviation
1PedestrainGlobal\npu\davinci_000115_output_0_prob_1_0.floatPedestrainGlobal\npu_int8\davinci_000115_output_0_prob_1_0.float10.0018.13E-04(0.182,0.326)(0.182,0.326)
2PedestrainGlobal\npu\davinci_000115_output_1_prob_2_0.floatPedestrainGlobal\npu_int8\davinci_000115_output_1_prob_2_0.float0.9999690.0070.011062(0.091,0.214)(0.091,0.216)
3PedestrainGlobal\npu\davinci_000115_output_2_prob_3_0.floatPedestrainGlobal\npu_int8\davinci_000115_output_2_prob_3_0.float10.0010.001132(0.091,0.284)(0.091,0.285)
4PedestrainGlobal\npu\davinci_000115_output_3_prob_4_0.floatPedestrainGlobal\npu_int8\davinci_000115_output_3_prob_4_0.float101.29E-04(0.333,0.469)(0.333,0.469)
5PedestrainGlobal\npu\davinci_000115_output_4_prob_5_0.floatPedestrainGlobal\npu_int8\davinci_000115_output_4_prob_5_0.float0.9999640.0080.011475(0.500,0.431)(0.500,0.423)
6PedestrainGlobal\npu\davinci_000115_output_5_prob_6_0.floatPedestrainGlobal\npu_int8\davinci_000115_output_5_prob_6_0.float0.9993860.0240.041245(0.500,0.276)(0.500,0.300)
7PedestrainGlobal\npu\davinci_000115_output_6_prob_7_0.floatPedestrainGlobal\npu_int8\davinci_000115_output_6_prob_7_0.float101.10E-05(0.333,0.471)(0.333,0.471)
8PedestrainGlobal\npu\davinci_000115_output_7_prob_8_0.floatPedestrainGlobal\npu_int8\davinci_000115_output_7_prob_8_0.float0.9998410.0130.021463(0.333,0.356)(0.333,0.364)
9PedestrainGlobal\npu\davinci_000115_output_8_prob_9_0.floatPedestrainGlobal\npu_int8\davinci_000115_output_8_prob_9_0.float0.9984280.0410.069086(0.333,0.349)(0.334,0.374)
10PedestrainGlobal\npu\davinci_000115_output_9_prob_Kid_0.floatPedestrainGlobal\npu_int8\davinci_000115_output_9_prob_Kid_0.float100(0.500,0.500)(0.500,0.500)
11PedestrainGlobal\npu\davinci_000115_output_10_prob_plaid_lattice_0.floatPedestrainGlobal\npu_int8\davinci_000115_output_10_prob_plaid_lattice_0.float106.40E-06(0.250,0.433)(0.250,0.433)
indexCompareFile1CompareFile2CosineSimilarityMaxAbsoluteErrorRelativeEuclideanDistanceStandardDeviation
1PedestrainGlobal\caffe\davinci_000115_prob_1.floatPedestrainGlobal\npu_int8\davinci_000115_output_0_prob_1_0.float0.9680410.2390.253727(0.182,0.358)(0.182,0.326)
2PedestrainGlobal\caffe\davinci_000115_prob_2.floatPedestrainGlobal\npu_int8\davinci_000115_output_1_prob_2_0.float0.9965030.0950.128354(0.091,0.244)(0.091,0.216)
3PedestrainGlobal\caffe\davinci_000115_prob_3.floatPedestrainGlobal\npu_int8\davinci_000115_output_2_prob_3_0.float0.9999930.0040.005254(0.091,0.286)(0.091,0.285)
4PedestrainGlobal\caffe\davinci_000115_prob_4.floatPedestrainGlobal\npu_int8\davinci_000115_output_3_prob_4_0.float10.0010.001475(0.333,0.469)(0.333,0.469)
5PedestrainGlobal\caffe\davinci_000115_prob_5.floatPedestrainGlobal\npu_int8\davinci_000115_output_4_prob_5_0.float0.998670.0470.068067(0.500,0.470)(0.500,0.423)
6PedestrainGlobal\caffe\davinci_000115_prob_6.floatPedestrainGlobal\npu_int8\davinci_000115_output_5_prob_6_0.float0.9805810.1550.228325(0.500,0.454)(0.500,0.300)
7PedestrainGlobal\caffe\davinci_000115_prob_7.floatPedestrainGlobal\npu_int8\davinci_000115_output_6_prob_7_0.float102.43E-04(0.333,0.471)(0.333,0.471)
8PedestrainGlobal\caffe\davinci_000115_prob_8.floatPedestrainGlobal\npu_int8\davinci_000115_output_7_prob_8_0.float0.9894150.120.176296(0.333,0.443)(0.333,0.364)
9PedestrainGlobal\caffe\davinci_000115_prob_9.floatPedestrainGlobal\npu_int8\davinci_000115_output_8_prob_9_0.float0.9180760.2520.490395(0.333,0.248)(0.334,0.374)
10PedestrainGlobal\caffe\davinci_000115_prob_a.floatPedestrainGlobal\npu_int8\davinci_000115_output_9_prob_Kid_0.float100(0.500,0.500)(0.500,0.500)
11PedestrainGlobal\caffe\davinci_000115_prob_b.floatPedestrainGlobal\npu_int8\davinci_000115_output_10_prob_plaid_lattice_0.float102.22E-04(0.250,0.433)(0.250,0.433)