You should take a look at this response from Francisco Massa:
Having extracted the intermediate outputs of a convolutional network, you can visualise them using matplotlib
matplotlib