Simple use of a CNN model to recognize handwritten digits from the MNIST dataset.
| .gitignore | ||
| classifier.py | ||
| log.txt | ||
| README.md | ||
Channing Bellamy BLLCHA013 19 April 2024 CSC3022F ML Assignment 1
This program uses a CNN model to recognize handwritten digits from the MNIST dataset.
Please ensure PyTorch and TorchVison are available, for example, using pip3: pip3 install torch torchvision
This program consists of a single Python file named "classifier.py". Example invocation: python3 classifier.py
"classifier.py" contains the program logic, including a CNN model, tranforms, and file reading logic.
Tested to work on:
- Linux 6.8.7-arch1-1 (x86_64) with Python 3.11.8, torch 2.2.2, and torchvision 0.17.2.
- macOS 14.4.1 Sonoma (x86_64) with Python 3.12.3, torch 2.2.2, and torchvision 0.17.2.