Downloads · 30 days
10
0% of all-time downloads
aijadugar/cifar-10-lenet5
cifar-10-lenet5 is a image classification model from aijadugar. Use it when you need a label for an image. It is set up for pytorch. The card lists the license as mit.
A PyTorch implementation of the classic LeNet-5 architecture trained on the CIFAR-10 dataset.
Downloads · 30 days
10
0% of all-time downloads
All-time downloads
15.1K
Public
Repo size
253 KB
Likes
0
Public
Click a slice to open those files.
.safetensors253 KB · 99%
From the Hugging Face model README
A PyTorch implementation of the classic LeNet-5 architecture trained on the CIFAR-10 dataset.
| Label | Class |
|---|---|
| 0 | airplane |
| 1 | automobile |
| 2 | bird |
| 3 | cat |
| 4 | deer |
| 5 | dog |
| 6 | frog |
| 7 | horse |
| 8 | ship |
| 9 | truck |
| Metric | Value |
|---|---|
| Test Accuracy | 58.32% |
lenet5_cifar10.pth — Trained model weightsimport torch
model = LeNet5()
model.load_state_dict(torch.load("lenet5_cifar10.pth"))
model.eval()
with torch.no_grad():
outputs = model(images)
_, predicted = torch.max(outputs, 1)
Ankit Bari