Message Boards Message Boards

Visualize weights of convolutional layer built locally?

Posted 6 years ago
POSTED BY: Ashish Sharma
2 Replies
Posted 6 years ago

I thank you so much for giving me the solution and such a quick response.

POSTED BY: Ashish Sharma

Ashish, please change some codes.

leNet = NetChain[block1, 
  "Output" -> NetDecoder[{"Class", {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}}], 
  "Input" -> NetEncoder[{"Image", {28, 28}, "Grayscale"}]]

weights = NetExtract[trainedNet, {1, "Weights"}];

You can visualize weights of conv1(Layer 1).

ImageAdjust[Image[#, Interleaving -> False]] & /@ weights

enter image description here

POSTED BY: Kotaro Okazaki
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract