Using a convolutional neural network to classify handwritten digits (MNIST) in TensorFlow.
- NVIDIA driver >= 418
- Python >= 3.6
- TensorFlow >= 2.3.0 with GPU support (CUDA 10.1 & cuDNN 7)
After installing CUDA 10.1 and cuDNN 7, run the following commands to install TensorFlow:
$ wget https://bootstrap.pypa.io/get-pip.py
$ python3 get-pip.py --user --upgrade
$ rm -rf get-pip.py
$ pip3 install --user tensorflow
$ ./train.py
$ tensorboard --logdir=logs
and TensorBoard will be available at localhost:6006
Run with NVIDIA Docker (recommended)
- NVIDIA driver >= 418
- NVIDIA Docker
$ ./docker/build.sh
$ ./docker/run.sh
$ ./train.py # run this in the container
$ ./docker/tensorboard.sh
and TensorBoard will be available at localhost:6006