snnn001 commited on
Commit
070f1ea
·
verified ·
1 Parent(s): dd1542a

Add LiteRT TIMM regnetx_032.tv2_in1k

Browse files
README.md ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ library_name: litert
3
+ base_model: timm/regnetx_032.tv2_in1k
4
+ pipeline_tag: image-classification
5
+ tags:
6
+ - tflite
7
+ - vision
8
+ - image-classification
9
+ - google
10
+ - computer-vision
11
+ datasets:
12
+ - imagenet-1k
13
+ ---
14
+
15
+ # Regnetx 032
16
+
17
+ This repository contains LiteRT/TFLite exports of the TIMM image-classification model `regnetx_032.tv2_in1k`.
18
+
19
+ ## Model Description
20
+
21
+ The model files were converted from pretrained TIMM weights published at `timm/regnetx_032.tv2_in1k`.
22
+
23
+ ## Available Model Files
24
+
25
+ | File | Description | Quantization |
26
+ |---|---|---|
27
+ | `regnetx_032_fp32.tflite` | Floating-point LiteRT/TFLite model. | Floating-point weights and activations. |
28
+ | `regnetx_032_dynamic_wi8_afp32.tflite` | Dynamic weight-quantized LiteRT/TFLite model. | INT8 weights with floating-point activations. |
29
+ | `regnetx_032_int8_channelwise.tflite` | Static INT8 LiteRT/TFLite model. | INT8 weights and INT8 activations, with channelwise weight quantization. |
30
+
31
+ ## Quantization Schema
32
+
33
+ `regnetx_032_int8_channelwise.tflite` was quantized with AI Edge Quantizer's static W8A8 recipe (`STATIC_WI8_AI8`).
34
+
35
+ The schema is:
36
+
37
+ | Tensor group | Quantization |
38
+ |---|---|
39
+ | Weights | INT8, symmetric, channelwise quantization. |
40
+ | Activations | INT8, asymmetric, tensorwise quantization. |
41
+ | Model input | INT8, tensorwise quantized NCHW image tensor with shape `[1, 3, 224, 224]`. |
42
+ | Model output | INT8, tensorwise quantized logits tensor with shape `[1, 1000]`. |
43
+
44
+ Calibration used real ImageNet validation images with the TIMM preprocessing flow for `regnetx_032.tv2_in1k`. The resolved TIMM preprocessing config was `{"crop_mode": "center", "crop_pct": 0.965, "input_size": [3, 224, 224], "interpolation": "bicubic", "mean": [0.485, 0.456, 0.406], "std": [0.229, 0.224, 0.225]}`. When using APIs that expose raw tensor buffers, prepare the input and output using the quantization parameters stored in the model.
45
+
46
+ ## Runtime Compatibility
47
+
48
+ These artifacts are intended for LiteRT CPU and GPU execution.
49
+
50
+ The static INT8 channelwise artifact also AOT-compiled successfully through the LiteRT Qualcomm compiler plugin for SM8750, with the compiled model fully selected into Qualcomm NPU dispatch.
51
+
52
+ MediaTek NPU enablement for the static INT8 channelwise artifact is still under validation. LiteRT AOT compilation for mt6993 did not complete in this release run, so this repository does not mark that artifact as MediaTek-NPU-ready yet.
53
+
54
+ ## Intended Uses & Limitations
55
+
56
+ The model files were converted from pretrained weights from TIMM. The models may have their own licenses or terms and conditions derived from TIMM and the dataset used for training. It is your responsibility to determine whether you have permission to use the models for your use case.
57
+
58
+ ## Model Details
59
+
60
+ - **Model Type:** Image classification / feature backbone
61
+ - **Model Stats:**
62
+ - Params (M): 15.3
63
+ - GMACs: 3.2
64
+ - Activations (M): 11.4
65
+ - Image size: 224 x 224
66
+ - **Papers:**
67
+ - Designing Network Design Spaces: https://arxiv.org/abs/2003.13678
68
+ - **Original:** https://github.com/pytorch/vision
69
+
70
+ ## Citation
71
+
72
+ ```bibtex
73
+ @InProceedings{Radosavovic2020,
74
+ title = {Designing Network Design Spaces},
75
+ author = {Ilija Radosavovic and Raj Prateek Kosaraju and Ross Girshick and Kaiming He and Piotr Doll{'a}r},
76
+ booktitle = {CVPR},
77
+ year = {2020}
78
+ }
79
+ ```
80
+ ```bibtex
81
+ @misc{rw2019timm,
82
+ author = {Ross Wightman},
83
+ title = {PyTorch Image Models},
84
+ year = {2019},
85
+ publisher = {GitHub},
86
+ journal = {GitHub repository},
87
+ doi = {10.5281/zenodo.4414861},
88
+ howpublished = {\url{https://github.com/huggingface/pytorch-image-models}}
89
+ }
90
+ ```
regnetx_032_dynamic_wi8_afp32.tflite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:578df753f0d9df296db811ca1acd42563bbb7d82b1c9e61ea1c8097dbe84bece
3
+ size 15963840
regnetx_032_fp32.tflite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:90817699f2f025165b247525e329d450f2b294ba9bfa346bddd8fef5f32a1966
3
+ size 61257360
regnetx_032_int8_channelwise.tflite ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e40544aff44244ff6577021690d5fe5596c4375c1f386988f345d31deb9d2642
3
+ size 16381728