AventIQ-AI / Single-Label-General-Image-Classifier

huggingface.co
Total runs: 8
24-hour runs: 0
7-day runs: -1
30-day runs: 4
Model's Last Updated: June 11 2025

Introduction of Single-Label-General-Image-Classifier

Model Details of Single-Label-General-Image-Classifier

🧠 Image Classification AI Model (CIFAR-100)

This repository contains a Vision Transformer (ViT)-based AI model fine-tuned for image classification on the CIFAR-100 dataset. The model is built using google/vit-base-patch16-224 , quantized to FP16 for efficient inference, and delivers high accuracy in multi-class image classification tasks.


🚀 Features
  • 🖼️ Task : Image Classification
  • 🧠 Base Model : google/vit-base-patch16-224 (Vision Transformer)
  • 🧪 Quantized : FP16 for faster and memory-efficient inference
  • 🎯 Dataset : 100 fine-grained object categories
  • ⚡ CUDA Enabled : Optimized for GPU acceleration
  • 📈 High Accuracy : Fine-tuned and evaluated on validation split

📊 Dataset Used

Hugging Face Dataset : tanganke/cifar100

  • Description : CIFAR-100 is a dataset of 60,000 32×32 color images in 100 classes (600 images per class)
  • Split : 50,000 training images and 10,000 test images
  • Categories : Animals, Vehicles, Food, Household items, etc.
  • License : MIT License (from source)
from datasets import load_dataset

dataset = load_dataset("tanganke/cifar100")
🛠️ Model & Training Configuration
  • Model: google/vit-base-patch16-224

  • Image Size: 224x224 (resized from 32x32)

  • Framework: Hugging Face Transformers & Datasets

  • Training Environment: Kaggle Notebook with CUDA

  • Epochs: 5–10 (with early stopping)

  • Batch Size: 32

  • Optimizer: AdamW

  • Loss Function: CrossEntropyLoss

✅ Evaluation & Scoring

  • Accuracy: ~70–80% (varies by configuration)

  • Validation Tool: evaluate or sklearn.metrics

  • Metric: Accuracy, Top-1 and Top-5 scores

  • Inference Speed: Significantly faster after quantizationextractor = ViTFeatureExtractor.from_pretrained("google/vit-base-patch16-224")

🔍 Inference Example

from PIL import Image
import torch

def predict(image_path):
    image = Image.open(image_path).convert("RGB")
    inputs = feature_extractor(images=image, return_tensors="pt").to("cuda")
    outputs = model(**inputs)
    logits = outputs.logits
    predicted_class = logits.argmax(-1).item()
    return dataset["train"].features["fine_label"].int2str(predicted_class)

print(predict("sample_image.jpg"))

📁 Folder Structure

📦image-classification-vit ┣ 📂vit-cifar100-fp16 ┣ 📜train.py ┣ 📜inference.py ┣ 📜README.md ┗ 📜requirements.txt

Runs of AventIQ-AI Single-Label-General-Image-Classifier on huggingface.co

8
Total runs
0
24-hour runs
0
3-day runs
-1
7-day runs
4
30-day runs

More Information About Single-Label-General-Image-Classifier huggingface.co Model

Single-Label-General-Image-Classifier huggingface.co

Single-Label-General-Image-Classifier huggingface.co is an AI model on huggingface.co that provides Single-Label-General-Image-Classifier's model effect (), which can be used instantly with this AventIQ-AI Single-Label-General-Image-Classifier model. huggingface.co supports a free trial of the Single-Label-General-Image-Classifier model, and also provides paid use of the Single-Label-General-Image-Classifier. Support call Single-Label-General-Image-Classifier model through api, including Node.js, Python, http.

Single-Label-General-Image-Classifier huggingface.co Url

https://huggingface.co/AventIQ-AI/Single-Label-General-Image-Classifier

AventIQ-AI Single-Label-General-Image-Classifier online free

Single-Label-General-Image-Classifier huggingface.co is an online trial and call api platform, which integrates Single-Label-General-Image-Classifier's modeling effects, including api services, and provides a free online trial of Single-Label-General-Image-Classifier, you can try Single-Label-General-Image-Classifier online for free by clicking the link below.

AventIQ-AI Single-Label-General-Image-Classifier online free url in huggingface.co:

https://huggingface.co/AventIQ-AI/Single-Label-General-Image-Classifier

Single-Label-General-Image-Classifier install

Single-Label-General-Image-Classifier is an open source model from GitHub that offers a free installation service, and any user can find Single-Label-General-Image-Classifier on GitHub to install. At the same time, huggingface.co provides the effect of Single-Label-General-Image-Classifier install, users can directly use Single-Label-General-Image-Classifier installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

Single-Label-General-Image-Classifier install url in huggingface.co:

https://huggingface.co/AventIQ-AI/Single-Label-General-Image-Classifier

Url of Single-Label-General-Image-Classifier

Single-Label-General-Image-Classifier huggingface.co Url

Provider of Single-Label-General-Image-Classifier huggingface.co

AventIQ-AI
ORGANIZATIONS

Other API from AventIQ-AI

huggingface.co

Total runs: 18
Run Growth: 14
Growth Rate: 77.78%
Updated:February 17 2025