This repository contains code for training a fully Convolutional Network (FCN) model to classify handwritten digits using the MNIST dataset. This experiment adopts the SGD optimizer and cross-entropy loss function to train the network for 10 epochs, achieving a final accuracy of 99.6%.
Clone this repository:
git clone https://github.com/zlfffan/mnist.git
conda update conda
conda create -n env_name python=x.x
pip install matplotlib
- Run
train.py
to train the FCN model. - Run
predict.py
to view the model's prediction results. - Run the following command to view the training process:
tensorboard --logdir=run