Downloads · 30 days
0
myneighborh/vehicle-model-classifier
vehicle-model-classifier is a image classification model from myneighborh. Use it when you need a label for an image. The card lists the license as cc-by-nc-sa-4.0.
This deep learning model classifies 396 real-world used car models from vehicle images.
Downloads · 30 days
0
Access
Public
Updated Jul 18, 2025
Repo size
3.2 GB
Likes
0
Public
Click a slice to open those files.
.pth3.2 GB · 100%
From the Hugging Face model README
This deep learning model classifies 396 real-world used car models from vehicle images.
from transformers import AutoImageProcessor, AutoModelForImageClassification
from PIL import Image
import torch
processor = AutoImageProcessor.from_pretrained("myneighborh/vehicle-model-classifier")
model = AutoModelForImageClassification.from_pretrained("myneighborh/vehicle-model-classifier")
image = Image.open("path_to_image.jpg")
inputs = processor(images=image, return_tensors="pt")
outputs = model(**inputs)
pred = outputs.logits.argmax(-1).item()
label = model.config.id2label[pred]
print("Predicted label:", label)