ILSVRC/imagenet-1k
Viewer • Updated • 1.43M • 82.2k • 957
How to use litert-community/swin_tiny_patch4_window7_224 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
Converted TIMM image classification model for LiteRT.
model.tflitemodel_static_int8.tflite| File | CPU | GPU | NPU |
|---|---|---|---|
model.tflite |
Supported | Supported with CPU fallback | N/A |
model_static_int8.tflite |
Supported | Supported with CPU fallback | Qualcomm |
The NPU entry denotes compilation support; runtime accuracy is unverified.
model_static_int8.tflite uses INT8 inputs/outputs and convolution/FC quantization; attention, normalization and other operations remain FP32. Apply the source checkpoint’s preprocessing, then quantize the input and dequantize the output using the file’s tensor scales and zero points.
For GPU execution of model_static_int8.tflite, select FP32 GPU precision.
@inproceedings{liu2021Swin,
title={Swin Transformer: Hierarchical Vision Transformer using Shifted Windows},
author={Liu, Ze and Lin, Yutong and Cao, Yue and Hu, Han and Wei, Yixuan and Zhang, Zheng and Lin, Stephen and Guo, Baining},
booktitle={Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV)},
year={2021}
}
@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}}
}
Base model
timm/swin_tiny_patch4_window7_224.ms_in1k