Extract activation maps

How can I extract activation map form a specific layer? I know how to extract filters but not the maps

You could use hooks as shown in this example.

Since Ive got you on hooks here, can you pls answer my other question on hooks: CNN visualisation hooks