I have built my model. Now I want to draw the network architecture diagram for my research paper. Example is shown below:
Asked
Active
Viewed 3.6e+01k times
198

Franck Dernoncourt
- 5,690
- 10
- 40
- 76

Muhammad Ali
- 2,487
- 5
- 19
- 22
-
1I think graphiz, based on the dot language can, can help you. – Michael Hooreman Nov 04 '16 at 06:24
-
1https://github.com/gwding/draw_convnet – Emre Nov 08 '16 at 03:27
-
If you are using latex, just use tikz. It does require a little time to get used to. – Ricardo Cruz Jan 25 '18 at 18:30
-
6It seems like the best approach would be to endow the network with the capability for self-reflection, and teach it how to draw its mind. Easy peasy. – Somatic Custard Jun 06 '19 at 20:33
-
1For a tool & approaches overview, see: https://medium.com/inbrowserai/simple-diagrams-of-convoluted-neural-networks-39c097d2925b – Piotr Migdal Jul 05 '19 at 08:51
6 Answers
144
I recently found this online tool that produces publication-ready NN-architecture schematics. It is called NN-SVG and made by Alex Lenail.
You can easily export these to use in, say, LaTeX for example.
Here are a few examples:

Pablo Rivas
- 1,541
- 1
- 9
- 5
-
9This tool seems great -- however, I noticed that it assumes the inputs are always square. I'm in an application with a rectangular input, so this doesn't quite work. – eraoul Oct 27 '18 at 00:22
-
5
-
This is great for standard CNN backbones, but in more complex architectures like encoder-decoder, attention, etc. it'd be nice to have the flexibility to re-arrange the rectangular components in any arbitrary layout – Addison Klinke Apr 01 '21 at 19:29
90
I wrote some latex code to draw Deep networks for one of my reports. You can find it here: https://github.com/HarisIqbal88/PlotNeuralNet

Haris Iqbal
- 909
- 6
- 2
-
-
Just wanted to say that this is an amazing tool. Wish I had time to utilize this! – rocketsfallonrocketfalls Jul 10 '21 at 13:50
-
+1. Used it for my bachelor thesis two years ago, I think it is awesome especially for slides. – Ciodar Feb 14 '23 at 21:34
19
- For automated drawing, see How do you visualize neural network architectures?, https://softwarerecs.stackexchange.com/q/28169/903 and https://softwarerecs.stackexchange.com/q/47841/903
- For manual drawing, see https://redd.it/574usi

Franck Dernoncourt
- 5,690
- 10
- 40
- 76
8
Netron viewer is the best tool to draw your model architecture
I suppose you have a pretrained model stored in .h5 file.

Stephen Rauch
- 1,783
- 11
- 22
- 34

oussama aatiq
- 99
- 1
- 1
-
Great tool. Thanks for sharing. This works well with MATLAB exported networks as well. – Asim Mar 09 '21 at 07:58
-
I love Netron for visualizing and understanding my models, but I don't think it's great for explaining them to others in a paper. The diagram is far too detailed in my opinion to get a high-level overview of the architecture – Addison Klinke Apr 01 '21 at 19:32
-
-
2
We can use Powerpoint to get the job done.
Draw the diagram (3D rectangles and perspectives come handy) -> select the interested area on the slide -> right-click -> Save as picture -> change filetype to PDF -> :)

Joseph
- 127
- 3