Downloads · 30 days
0
shaanzeeeee/vit_base_patch16_pc_parts_classifier
vit_base_patch16_pc_parts_classifier is a image classification model from shaanzeeeee. Use it when you need a label for an image. It is set up for fastai. The card lists the license as mit.
Vision Transformer image classifier for 11 PC component and cable-management classes.
Downloads · 30 days
0
Access
Public
Updated Apr 16, 2026
Repo size
690 MB
Likes
0
Public
Click a slice to open those files.
.pkl345 MB · 50%
From the Hugging Face model README
Vision Transformer image classifier for 11 PC component and cable-management classes.
vit_base_patch16_224)best_model_export.pkl: FastAI export for direct inference.best_model_state_dict.pth: PyTorch state dict.best_model_metadata.json: Training and class metadata.from fastai.learner import load_learner
from pathlib import Path
learn = load_learner("best_model_export.pkl")
pred_class, pred_idx, probs = learn.predict(Path("sample.jpg"))
print(pred_class)
print({learn.dls.vocab[i]: float(probs[i]) for i in range(len(probs))})
A live inference demo is available on Hugging Face Spaces: