Replace dynamic-range int8 with weight-only int8

#3
README.md CHANGED
@@ -28,12 +28,6 @@ model-index:
28
  - name: Top 5 Accuracy (Full Precision)
29
  type: accuracy
30
  value: 0.9660
31
- - name: Top 1 Accuracy (Dynamic Quantized wi8 afp32)
32
- type: accuracy
33
- value: 0.6354
34
- - name: Top 5 Accuracy (Dynamic Quantized wi8 afp32)
35
- type: accuracy
36
- value: 0.7724
37
  ---
38
 
39
  # EfficientNet B4
@@ -49,6 +43,16 @@ acc@1 (on ImageNet-1K): 83.384%
49
  acc@5 (on ImageNet-1K): 96.594%
50
  num_params: 19,341,616
51
 
 
 
 
 
 
 
 
 
 
 
52
  The license information of the original model was missing.
53
 
54
  ## Intended uses & limitations
 
28
  - name: Top 5 Accuracy (Full Precision)
29
  type: accuracy
30
  value: 0.9660
 
 
 
 
 
 
31
  ---
32
 
33
  # EfficientNet B4
 
43
  acc@5 (on ImageNet-1K): 96.594%
44
  num_params: 19,341,616
45
 
46
+ ### Quantized variant
47
+
48
+ `efficientnet_b4_weight_only_wi8_afp32.tflite` is a weight-only int8
49
+ quantization of the same weights (about 3.7x smaller than float32).
50
+ Weight-only quantization is used instead of dynamic-range quantization
51
+ because EfficientNet's SE and SiLU layers are sensitive to activation
52
+ quantization; in a spot check against the float model the weight-only
53
+ file keeps the top-1 predictions on real photos with a minimum logit
54
+ correlation of 0.999.
55
+
56
  The license information of the original model was missing.
57
 
58
  ## Intended uses & limitations
efficientnet_b4_dynamic_wi8_afp32.tflite → efficientnet_b4_weight_only_wi8_afp32.tflite RENAMED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:163b3774e808f0fe10d60955d05fbdb999fd588114bf03f5d5cb9e0af2a10fd2
3
- size 21175280
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:37716b560d61babad6f325e41f2a4c1af4516d2270779303e4a4bec44ffd248b
3
+ size 21261216