Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/fzl-22/mnist-classification-cnn

Handwritten digits classification using CNN in PyTorch.
https://github.com/fzl-22/mnist-classification-cnn

Last synced: about 2 months ago
JSON representation

Handwritten digits classification using CNN in PyTorch.

Awesome Lists containing this project

README

        

# Handwritten Digits (MNIST) Classification using CNN

This project uses a Convolutional Neural Network (CNN) in PyTorch to classify handwritten digits (0-9) from the MNIST dataset. The model is trained to recognize patterns in 28x28 grayscale images, achieving high accuracy in digit classification (97.9%).

To create the predefined virtual environment, run this command.

```bash
conda env create -f environment.yml -p ./venv
```

Then activate it with the following command.

```bash
conda activate ./venv
```

If you are using CUDA instead of Apple's Metal, modify all occurences of `torch.mps.is_available` and `torch.device("mps")` to `torch.cuda.is_available` and `torch.device("cuda")`, respectively.