This is an example from google website.
Multilayer Convolutional Network with Tensor Flow
#Training
*Training MNIST data and Save the result to ckpt file: (Iterations: 1 million, Test Accuracy over 98.5%)
python MNIST_DEEP_TRAIN.py 20000
#Testing
*Test Hand Write Image with Trained ckpt file:
python MNIST_DEEP_TESTIMG.py Test/2.png