Instructions to use litert-community/maxvit_tiny_tf_224.in1k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- LiteRT
How to use litert-community/maxvit_tiny_tf_224.in1k with LiteRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Maxvit Tiny Tf 224
This repository contains LiteRT/TFLite exports of the TIMM image-classification model maxvit_tiny_tf_224.in1k.
Model Description
The model files were converted from pretrained TIMM weights published at timm/maxvit_tiny_tf_224.in1k.
Available Model Files
| File | Description | Quantization |
|---|---|---|
maxvit_tiny_tf_224_fp32.tflite |
Floating-point LiteRT/TFLite model. | Floating-point weights and activations. |
maxvit_tiny_tf_224_dynamic_wi8_afp32.tflite |
Dynamic weight-quantized LiteRT/TFLite model. | INT8 weights with floating-point activations. |
maxvit_tiny_tf_224_int8_channelwise.tflite |
Static INT8 LiteRT/TFLite model. | INT8 weights and INT8 activations, with channelwise weight quantization. |
Quantization Schema
maxvit_tiny_tf_224_int8_channelwise.tflite was quantized with AI Edge Quantizer's static W8A8 recipe (STATIC_WI8_AI8).
The schema is:
| Tensor group | Quantization |
|---|---|
| Weights | INT8, symmetric, channelwise quantization. |
| Activations | INT8, asymmetric, tensorwise quantization. |
| Model input | INT8, tensorwise quantized NCHW image tensor with shape [1, 3, 224, 224]. |
| Model output | INT8, tensorwise quantized logits tensor with shape [1, 1000]. |
Calibration used real ImageNet validation images with the TIMM preprocessing flow for maxvit_tiny_tf_224.in1k. The resolved TIMM preprocessing config was {"crop_mode": "center", "crop_pct": 0.95, "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.
Runtime Compatibility
These artifacts are intended for LiteRT CPU and GPU execution.
Enablement for other NPU backends is still under validation.
Intended Uses & Limitations
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.
Model Details
- Model Type: Image classification / feature backbone
- Model Stats:
- Params (M): 30.9
- GMACs: 5.6
- Activations (M): 35.8
- Image size: 224 x 224
- Papers:
- MaxViT: Multi-Axis Vision Transformer: https://arxiv.org/abs/2204.01697
- Dataset: ImageNet-1k
Citation
@misc{rw2019timm,
author = {Ross Wightman},
title = {PyTorch Image Models},
year = {2019},
publisher = {GitHub},
journal = {GitHub repository},
doi = {10.5281/zenodo.4414861},
howpublished = {\url{https://github.com/huggingface/pytorch-image-models}}
}
@article{tu2022maxvit,
title={MaxViT: Multi-Axis Vision Transformer},
author={Tu, Zhengzhong and Talebi, Hossein and Zhang, Han and Yang, Feng and Milanfar, Peyman and Bovik, Alan and Li, Yinxiao},
journal={ECCV},
year={2022},
}
@article{dai2021coatnet,
title={CoAtNet: Marrying Convolution and Attention for All Data Sizes},
author={Dai, Zihang and Liu, Hanxiao and Le, Quoc V and Tan, Mingxing},
journal={arXiv preprint arXiv:2106.04803},
year={2021}
}
- Downloads last month
- 24
Model tree for litert-community/maxvit_tiny_tf_224.in1k
Base model
timm/maxvit_tiny_tf_224.in1k