Downloads · 30 days
7
8% of all-time downloads
IamTheStormThatIsApproaching/joytag-onnx-Q8_0-quantized
joytag-onnx-Q8_0-quantized is a image classification model from IamTheStormThatIsApproaching. Use it when you need a label for an image. It is set up for onnx. The card lists the license as apache-2.0.
Q80 Quantized JoyTag Model, working well with merely 88MiB in size (74.9% smaller), using 200+ MiB less RAM and achieving ~10% performance improvement.
Downloads · 30 days
7
8% of all-time downloads
All-time downloads
88
Public
Repo size
92.2 MB
Likes
0
Public
Click a slice to open those files.
.onnx92.2 MB · 100%
From the Hugging Face model README
Q8_0 Quantized JoyTag Model, working well with merely 88MiB in size (74.9% smaller), using 200+ MiB less RAM and achieving ~10% performance improvement.
It's fully compatible with your existing ONNXRuntime code. Replace the model file and it will work.
[!WARNING] Precision Loss is expected. You may get unwanted outcome when using this model.
You can refer to joytag-node, a simple Node.js implementation for serving JoyTag by me.
It will use approximately 750MiB of RAM (when using this quantized model), which is relatively a small amount. And it's fairly easy to run.
Pre-process the original model for quantizing:
python3 -m onnxruntime.quantization.preprocess --input original-model.onnx --output input.onnx
Quantize the pre-processed model using Q8_0:
import onnx
from onnxruntime.quantization import quantize_dynamic, QuantType
quantize_dynamic(
model_input="input.onnx",
model_output="output.onnx",
weight_type=QuantType.QInt8
)
This project is licensed under Apache-2.0 License, as the same as the original model.