Skip to content
Graphviz (DOT) templates

CNN Architecture

Convolutional layers, pooling and dense head.

Template previewGraphviz (DOT)
Rendering…

Make it your own.

digraph cnn {
  rankdir=LR;
  graph [bgcolor=transparent];
  node [shape=box, style="rounded,filled", fontname=Inter, fontsize=10];

  In [label="Input\n224 × 224 × 3", fillcolor="#dbeafe"];
  C1 [label="Conv 3×3, 64\n+ReLU", fillcolor="#fef3c7"];
  P1 [label="MaxPool 2×2", fillcolor="#ede9fe"];
  C2 [label="Conv 3×3, 128\n+ReLU", fillcolor="#fef3c7"];
  P2 [label="MaxPool 2×2", fillcolor="#ede9fe"];
  C3 [label="Conv 3×3, 256\n+ReLU", fillcolor="#fef3c7"];
  P3 [label="MaxPool 2×2", fillcolor="#ede9fe"];
  GAP [label="Global avg pool"];
  F1 [label="Dense 512", fillcolor="#fce7f3"];
  Out [label="Softmax\n1000 classes", fillcolor="#dcfce7"];

  In -> C1 -> P1 -> C2 -> P2 -> C3 -> P3 -> GAP -> F1 -> Out;
}