Deep learning has led to stunning achievements in many areas in recent years, including medical image processing. After a brief discussion of the basic principles of deep learning, some selected applications of deep learning in SPECT and PET of the brain will be presented.