193

I have built my model. Now I want to draw the network architecture diagram for my research paper. Example is shown below:

enter image description here

enter image description here

Franck Dernoncourt
  • 5,573
  • 9
  • 40
  • 75
Muhammad Ali
  • 2,437
  • 5
  • 19
  • 22

6 Answers6

140

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:

AlexNet style AlexNet style


LeNet style enter image description here


and the good old Fully Connected style enter image description here

Pablo Rivas
  • 1,501
  • 1
  • 9
  • 5
  • 9
    This 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
    The tool now accommodates rectangular inputs, give it a try – David Cian Jun 20 '20 at 14:52
  • 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
89

I wrote some latex code to draw Deep networks for one of my reports. You can find it here: https://github.com/HarisIqbal88/PlotNeuralNet

With this, you can draw networks like these: enter image description here

Haris Iqbal
  • 899
  • 6
  • 2
18
Franck Dernoncourt
  • 5,573
  • 9
  • 40
  • 75
7

Netron viewer is the best tool to draw your model architecture

Image

I suppose you have a pretrained model stored in .h5 file.

Stephen Rauch
  • 1,783
  • 11
  • 21
  • 34
oussama aatiq
  • 89
  • 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
  • the link is broken – SheppLogan May 14 '23 at 20:54
5

Model Architecture

I drew this with draw.io, you can also choose other structures of the drawing e.g circles.

kongkip
  • 51
  • 1
  • 2
1

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
  • 117
  • 3