You need to have test_lmdb, train lmdb to train the CNN. The important files are deploy.prototxt, wich is the architecture of our CNN, cnn.py, wich show how to use it with python.
Refere to http://vulgairedev.fr/blog/article/caffe-introduction to learn more.