Release deployment artifacts from CompressionKit
Browse files- README.md +10 -0
- codec_spec.json +19 -1
- decoder.keras +1 -1
- encoder.keras +1 -1
- model_card.json +29 -0
README.md
CHANGED
|
@@ -63,6 +63,16 @@ _PRD here is faithfulness (vs the recorded input); see **Fidelity & Robustness**
|
|
| 63 |
- **Codec CR (uniform):** 8.0x
|
| 64 |
- **Codec CR (learned prior):** 15.24x
|
| 65 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 66 |
## Usage
|
| 67 |
|
| 68 |
### Python (compressionkit runtime)
|
|
|
|
| 63 |
- **Codec CR (uniform):** 8.0x
|
| 64 |
- **Codec CR (learned prior):** 15.24x
|
| 65 |
|
| 66 |
+
## Encoder Precision Parity
|
| 67 |
+
|
| 68 |
+
Difference from FP32 reconstruction on a disjoint real-data holdout; lower is better.
|
| 69 |
+
|
| 70 |
+
| Encoder | P90 PRD | Worst PRD | Status |
|
| 71 |
+
|---|---:|---:|---|
|
| 72 |
+
| FP16 | 1.24% | 2.98% | recommended |
|
| 73 |
+
| INT16X8 | 3.86% | 6.36% | recommended |
|
| 74 |
+
| INT8 | 9.22% | 13.02% | recommended |
|
| 75 |
+
|
| 76 |
## Usage
|
| 77 |
|
| 78 |
### Python (compressionkit runtime)
|
codec_spec.json
CHANGED
|
@@ -14,7 +14,7 @@
|
|
| 14 |
512,
|
| 15 |
1
|
| 16 |
],
|
| 17 |
-
"encoder_input_dtype": "
|
| 18 |
},
|
| 19 |
"preprocessing_contract": {
|
| 20 |
"format_version": 1,
|
|
@@ -52,6 +52,24 @@
|
|
| 52 |
"int16x8_header": "encoder_int16x8.h",
|
| 53 |
"int8_tflite": "encoder.tflite",
|
| 54 |
"int8_header": "encoder.h",
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 55 |
"keras": "encoder.keras",
|
| 56 |
"input_shape": [
|
| 57 |
null,
|
|
|
|
| 14 |
512,
|
| 15 |
1
|
| 16 |
],
|
| 17 |
+
"encoder_input_dtype": "float32"
|
| 18 |
},
|
| 19 |
"preprocessing_contract": {
|
| 20 |
"format_version": 1,
|
|
|
|
| 52 |
"int16x8_header": "encoder_int16x8.h",
|
| 53 |
"int8_tflite": "encoder.tflite",
|
| 54 |
"int8_header": "encoder.h",
|
| 55 |
+
"variants": {
|
| 56 |
+
"float32": {
|
| 57 |
+
"tflite": "encoder_float32.tflite",
|
| 58 |
+
"input_dtype": "float32"
|
| 59 |
+
},
|
| 60 |
+
"fp16": {
|
| 61 |
+
"tflite": "encoder_fp16.tflite",
|
| 62 |
+
"input_dtype": "float32"
|
| 63 |
+
},
|
| 64 |
+
"int16x8": {
|
| 65 |
+
"tflite": "encoder_int16x8.tflite",
|
| 66 |
+
"input_dtype": "float32"
|
| 67 |
+
},
|
| 68 |
+
"int8": {
|
| 69 |
+
"tflite": "encoder.tflite",
|
| 70 |
+
"input_dtype": "int8"
|
| 71 |
+
}
|
| 72 |
+
},
|
| 73 |
"keras": "encoder.keras",
|
| 74 |
"input_shape": [
|
| 75 |
null,
|
decoder.keras
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 331893
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ece70abcd9c10fe22d5235c09e1deddb33e0275529c63daf61af22a3757d368f
|
| 3 |
size 331893
|
encoder.keras
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 176385
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:abc2fb5e9caf4be4c32f8c44a3513b6d584d5c26a40b758166b356fdc6ea6da1
|
| 3 |
size 176385
|
model_card.json
CHANGED
|
@@ -1024,5 +1024,34 @@
|
|
| 1024 |
}
|
| 1025 |
}
|
| 1026 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1027 |
}
|
| 1028 |
}
|
|
|
|
| 1024 |
}
|
| 1025 |
}
|
| 1026 |
}
|
| 1027 |
+
},
|
| 1028 |
+
"encoder_precision_report": {
|
| 1029 |
+
"FP16": {
|
| 1030 |
+
"code_index_match_fraction_median": 1.0,
|
| 1031 |
+
"encoder_input_saturation_fraction_max": 0.0,
|
| 1032 |
+
"encoder_input_saturation_fraction_p90": 0.0,
|
| 1033 |
+
"frames_checked": 2048,
|
| 1034 |
+
"latent_prd_percent_p90": 0.029294916495296877,
|
| 1035 |
+
"reconstruction_prd_percent_max": 2.9753845116909767,
|
| 1036 |
+
"reconstruction_prd_percent_p90": 1.2357682889891153
|
| 1037 |
+
},
|
| 1038 |
+
"INT16X8": {
|
| 1039 |
+
"code_index_match_fraction_median": 0.9375,
|
| 1040 |
+
"encoder_input_saturation_fraction_max": 0.0,
|
| 1041 |
+
"encoder_input_saturation_fraction_p90": 0.0,
|
| 1042 |
+
"frames_checked": 2048,
|
| 1043 |
+
"latent_prd_percent_p90": 0.6776647021940763,
|
| 1044 |
+
"reconstruction_prd_percent_max": 6.356777325986425,
|
| 1045 |
+
"reconstruction_prd_percent_p90": 3.864752963692403
|
| 1046 |
+
},
|
| 1047 |
+
"INT8": {
|
| 1048 |
+
"code_index_match_fraction_median": 0.51953125,
|
| 1049 |
+
"encoder_input_saturation_fraction_max": 0.00390625,
|
| 1050 |
+
"encoder_input_saturation_fraction_p90": 0.0,
|
| 1051 |
+
"frames_checked": 2048,
|
| 1052 |
+
"latent_prd_percent_p90": 6.797799340783448,
|
| 1053 |
+
"reconstruction_prd_percent_max": 13.020439212345082,
|
| 1054 |
+
"reconstruction_prd_percent_p90": 9.218914060552935
|
| 1055 |
+
}
|
| 1056 |
}
|
| 1057 |
}
|