Downloads · 30 days
11
22% of all-time downloads
lbernick/mnist-cnn
mnist-cnn is a image classification model from lbernick. Use it when you need a label for an image. It is set up for pytorch.
A convolutional neural network trained on the MNIST dataset for handwritten digit classification.
Downloads · 30 days
11
22% of all-time downloads
All-time downloads
49
Public
Repo size
3.4 MB
Likes
0
Public
Click a slice to open those files.
.pt1.7 MB · 100%
From the Hugging Face model README
A convolutional neural network trained on the MNIST dataset for handwritten digit classification.
This is a ConvNet model trained on MNIST with the following architecture:
import torch
from pathlib import Path
# Download the model
model_path = "model.pt"
state_dict = torch.load(model_path)
# Load into your ConvNet architecture
# (you'll need to define the ConvNet class from the training script)
model = ConvNet()
model.load_state_dict(state_dict)
model.eval()
# Make predictions
with torch.no_grad():
predictions = model(images)
The model was trained on the MNIST dataset, which contains 70,000 grayscale images of handwritten digits (0-9), each 28x28 pixels.
Generated automatically during training.