Add animation of the convolution network
Signed-off-by: Riccardo Finotello <riccardo.finotello@gmail.com>
BIN
img/animation/conv.pdf
Normal file
54
img/animation/conv.tex
Normal file
@@ -0,0 +1,54 @@
|
||||
\documentclass[10pt,tikz]{standalone}
|
||||
|
||||
\usepackage{tikz}
|
||||
\usepackage{ifthen}
|
||||
|
||||
\newlength{\cell}
|
||||
\setlength{\cell}{1cm}
|
||||
|
||||
\newlength{\separation}
|
||||
\setlength{\separation}{3cm}
|
||||
|
||||
\begin{document}
|
||||
\foreach \m in {0,...,9}
|
||||
{
|
||||
\foreach \n in {0,...,7}
|
||||
{
|
||||
\begin{tikzpicture}
|
||||
|
||||
% draw main grid
|
||||
\draw[thick] (0,0) rectangle (10 * \cell, 12 * \cell);
|
||||
|
||||
\foreach \x in {0,...,9}
|
||||
{
|
||||
\foreach \y in {0,...,11}
|
||||
{
|
||||
\draw (\x * \cell, \y * \cell) rectangle (\x * \cell + \cell, \y * \cell + \cell);
|
||||
}
|
||||
}
|
||||
|
||||
\node[anchor=base] at (5 * \cell, -\cell) {INPUT};
|
||||
|
||||
% draw convolution
|
||||
\draw[thick, fill=red!20, opacity=0.5] (\n * \cell, 12 * \cell - \m * \cell) rectangle (\n * \cell + 3 * \cell, 12 * \cell - 3 * \cell - \m * \cell);
|
||||
|
||||
\draw[fill=red!20, opacity=0.5] (\n * \cell + 10 * \cell + \separation, 9 * \cell - \m * \cell) rectangle (\n * \cell + 10 * \cell + \separation + \cell, 9 * \cell + \cell - \m * \cell);
|
||||
|
||||
\draw[thick, red] (\n * \cell + 1.5 * \cell, 12 * \cell - \m * \cell) -- (\n * \cell + 10 * \cell + \separation + 0.5 * \cell, 10 * \cell - 0.5 * \cell - \m * \cell) -- (\n * \cell + 1.5 * \cell, 9 * \cell - \m * \cell);
|
||||
|
||||
% draw filter
|
||||
\draw[thick] (10 * \cell + \separation, 0) rectangle (18 * \cell + \separation, 10 * \cell);
|
||||
|
||||
\foreach \x in {0,...,7}
|
||||
{
|
||||
\foreach \y in {0,...,9}
|
||||
{
|
||||
\draw (10 * \cell + \separation + \x * \cell, \y * \cell) rectangle (10 * \cell + \separation + \x * \cell + \cell, \y * \cell + \cell);
|
||||
}
|
||||
}
|
||||
|
||||
\node[anchor=base] at (10 * \cell + \separation + 4 * \cell, -\cell) {OUTPUT};
|
||||
\end{tikzpicture}
|
||||
}
|
||||
}
|
||||
\end{document}
|
||||
BIN
img/animation/sequence/conv-0.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-1.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-10.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-11.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-12.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-13.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-14.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
img/animation/sequence/conv-15.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
img/animation/sequence/conv-16.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-17.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-18.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-19.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-2.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-20.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-21.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-22.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-23.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-24.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-25.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-26.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-27.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/animation/sequence/conv-28.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-29.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-3.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-30.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-31.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-32.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-33.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/animation/sequence/conv-34.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-35.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/animation/sequence/conv-36.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/animation/sequence/conv-37.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/animation/sequence/conv-38.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/animation/sequence/conv-39.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-4.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-40.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/animation/sequence/conv-41.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/animation/sequence/conv-42.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/animation/sequence/conv-43.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/animation/sequence/conv-44.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/animation/sequence/conv-45.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/animation/sequence/conv-46.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/animation/sequence/conv-47.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-48.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-49.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/animation/sequence/conv-5.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-50.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-51.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/animation/sequence/conv-52.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-53.png
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
img/animation/sequence/conv-54.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-55.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-56.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-57.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-58.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-59.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-6.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
img/animation/sequence/conv-60.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-61.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-62.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-63.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-64.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-65.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-66.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-67.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-68.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-69.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-7.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
img/animation/sequence/conv-70.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-71.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-72.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-73.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-74.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-75.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-76.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-77.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-78.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-79.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
img/animation/sequence/conv-8.png
Normal file
|
After Width: | Height: | Size: 37 KiB |
BIN
img/animation/sequence/conv-9.png
Normal file
|
After Width: | Height: | Size: 37 KiB |