uoft-cs/cifar10
Viewer • Updated • 60k • 377k • 111
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