Downloads ยท 30 days
0
JanadaSroor/vision-models
vision-models is a feature extraction model from JanadaSroor. Use it when you need embeddings to search or compare text. The card lists the license as mit.
[](https://huggingface.co/JanadaSroor/vision-models/blob/main/AIModelsDemo.ipynb) [](https://huggingface.co/JanadaSroor/vision-models)
Downloads ยท 30 days
0
Access
Public
Updated Jan 1, 2026
Repo size
505 MB
Likes
0
Public
Click a slice to open those files.
.onnx505 MB ยท 100%
From the Hugging Face model README
This repository contains optimized ONNX models designed for the AI Kit Gallery Android app. These models enable high-performance, offline AI-powered image search and categorization directly on mobile devices.
Text Encoder: clip_text_quantized.onnx (62MB)
Vision Encoder: clip_vision_quantized.onnx (337MB)
vit_base_quantized.onnx (84MB)
You can view or download the demo notebook from Hugging Face: View AI Models Demo
To run it in Colab: Download the .ipynb file and upload it to Google Colab.
# Install Hugging Face Hub
pip install huggingface_hub
# Download CLIP Models
huggingface-cli download JanadaSroor/vision-models models/clip_text_quantized.onnx --local-dir .
huggingface-cli download JanadaSroor/vision-models models/clip_vision_quantized.onnx --local-dir .
# Download ViT Model
huggingface-cli download JanadaSroor/vision-models models/vit_base_quantized.onnx --local-dir .
| Model | Original Size | Compressed Size | Quantization | Input Shape | Output Shape |
|---|---|---|---|---|---|
| CLIP Text | ~120MB | 62MB (โฌ๏ธ 48%) | โ INT8 | [batch, 77] | [batch, 512] |
| CLIP Vision | ~340MB | 337MB | โ FP32 | [batch, 3, 224, 224] | [batch, 512] |
| ViT Base | ~340MB | 84MB (โฌ๏ธ 75%) | โ INT8 | [batch, 3, 224, 224] | [batch, 768] |
Inference times measured on a standard T4 GPU instance (CPU mode) in Colab:
Note: Mobile performance on modern Android devices (SD 8 Gen 1+) is expected to be 20-30% faster due to NPU/GPU acceleration.
These models are optimized for ONNX Runtime Mobile.
.onnx files to your project's src/main/assets/ directory.val session = OrtSession.create(env, modelBytes, options)
val inputs = mapOf("input_ids" to textTensor)
val results = session.run(inputs)
We used Hugging Face Optimum and ONNX Runtime Quantization tools to achieve these results:
This project is licensed under the MIT License. Models are subject to their respective original licenses (OpenAI for CLIP, Google for ViT).
Maintained by JanadaSroor | Developed for AI Kit Gallery