# Visualization of deep conv net

**URL:** <https://community.deeplearning.ai/t/visualization-of-deep-conv-net/17744>\
**Category:** Convolutional Neural Networks\
**Tags:** coursera-platform\
**Created:** [June 28, 2021, 8:12am UTC](https://community.deeplearning.ai/t/visualization-of-deep-conv-net/17744 "2021-06-28T08:12:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yc2984](https://avatars.discourse-cdn.com/v4/letter/y/bbe5ce/32.png) [@yc2984](https://community.deeplearning.ai/u/yc2984)\
**Post date:** [June 28, 2021, 8:12am UTC](https://community.deeplearning.ai/t/visualization-of-deep-conv-net/17744/1 "2021-06-28T08:12:17Z")

</div>

In week 4, neural style transfer, I don’t quite understand how Andrew visualized the “patches” of the pictures that maximized the activation of a certain hidden unit. Especially the ones in deeper layers, can you trace it back to the original pixels that were relevant to a certain hidden unit?

 ![Screen Shot 2021-06-28 at 10.08.00 AM](https://global.discourse-cdn.com/dlai/original/2X/c/c42de15ffd3d5f2031cc6973fe70b5a1d8f82540.jpeg)

---

<div class="post-metadata">

**Author:** ![XpRienzo](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/xprienzo/32/51_2.png) [@XpRienzo](https://community.deeplearning.ai/u/XpRienzo)\
**Post date:** [June 28, 2021, 2:02pm UTC](https://community.deeplearning.ai/t/visualization-of-deep-conv-net/17744/2 "2021-06-28T14:02:09Z")

</div>

Hey so what the pictures here mean are not traced back pixels from the network. The visualisation just shows what kind of pictures produce the maximum activations. So it could simply be a set of pictures tested in the network to see which of them have the highest activation values in the 5th layer here. We can check the individual activations of the layers for any given input picture if you meant to ask that.

---

<div class="post-metadata">

**Author:** ![yc2984](https://avatars.discourse-cdn.com/v4/letter/y/bbe5ce/32.png) [@yc2984](https://community.deeplearning.ai/u/yc2984)\
**Post date:** [June 30, 2021, 9:18am UTC](https://community.deeplearning.ai/t/visualization-of-deep-conv-net/17744/3 "2021-06-30T09:18:53Z")

</div>

Thanks for your reply, that makes sense for the later layers. Does it also apply to for example, layer 1, (far left in picture)? It doesn’t look like they are complete pictures but part of picture that contains edges.

---

<div class="post-metadata">

**Author:** ![XpRienzo](https://sea1.discourse-cdn.com/dlai/user_avatar/community.deeplearning.ai/xprienzo/32/51_2.png) [@XpRienzo](https://community.deeplearning.ai/u/XpRienzo)\
**Post date:** [June 30, 2021, 11:48am UTC](https://community.deeplearning.ai/t/visualization-of-deep-conv-net/17744/4 "2021-06-30T11:48:45Z")

</div>

Since these are purely convolutional layers, you could pass crops of images. Perhaps what this is meant to show is, the crops have the highest activation for the earlier layers rather than the full images.
