Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Download

📚 The CoCalc Library - books, templates and other resources

132930 views
License: OTHER
1
\newcommand{\distance}{6}
2
\newcommand{\xup}{3.5}
3
\newcommand{\yup}{6}
4
\newcommand{\upsizex}{1}
5
\newcommand{\upsizey}{2}
6
\newcommand{\upshift}{3/4*\upsizey}
7
\newcommand{\distancedots}{1}
8
9
\begin{tikzpicture}[scale=0.6]
10
% Print input feature maps
11
\foreach \i in {0, 0.2, ..., 0.6} {
12
\draw[fill=white] (0+\i, 0) -- (2+\i, 3) -- (2+\i, 7) -- (\i, 4) -- (\i, 0);
13
}
14
15
% Print filters
16
\foreach \i in {0, 0.2, ..., 0.6, 1.3} {
17
\draw[fill=white] (\xup+\i, \yup) -- (\xup+\upsizex+\i, \yup+\upshift) -- (\xup+\upsizex+\i, \yup+\upsizey+\upshift) -- (\xup+\i, \yup+\upsizey) -- (\xup+\i, \yup);
18
\draw[fill=white] (\xup+\i, \yup) -- (\xup+\i+0.1, \yup) -- (\xup+\i+0.1, \yup+\upsizey) -- (\xup+\i, \yup+\upsizey) -- (\xup+\i, \yup);
19
\draw[fill=white] (\xup+\i+0.1, \yup) -- (\xup+\upsizex+\i+0.1, \yup+\upshift) -- (\xup+\upsizex+\i+0.1, \yup+\upsizey+\upshift) -- (\xup+\i+0.1, \yup+\upsizey) -- (\xup+\i+0.1, \yup);
20
\draw[fill=white] (\xup+\i, \yup+\upsizey) -- (\xup+\i+0.1, \yup+\upsizey) -- (\xup+\upsizex+\i+0.1, \yup+\upsizey+\upshift) -- (\xup+\upsizex+\i, \yup+\upsizey+\upshift) -- (\xup+\i, \yup+\upsizey);
21
}
22
23
\foreach \i in {0, 0.2, ..., 0.6, 1.2} {
24
\draw[fill=white] (\distance+\i, 0) -- (\distance+2+\i, 3) -- (\distance+2+\i, 7) -- (\distance+\i, 4) -- (\distance+\i, 0);
25
}
26
27
\draw [decorate,decoration={brace,amplitude=+4pt,mirror},xshift=0pt,yshift=-2pt]
28
(-0.1,0) -- (0.7,0) node [black,midway,yshift=-0.6cm, align=center] {\footnotesize$3$ feature maps\\\footnotesize(e.g. RGB)};
29
\draw [decorate,decoration={brace,amplitude=+4pt,mirror},xshift=0pt,yshift=-2pt]
30
(\distance-0.1,0) -- (\distance+1.3,0) node [black,midway,yshift=-0.6cm, align=center] {\footnotesize$n$ feature maps};
31
\draw [decorate,decoration={brace,amplitude=+4pt},xshift=0pt,yshift=+2pt]
32
(\xup-0.1+\upsizex,\yup+\upsizey+\upshift) -- (\xup+1.5+\upsizex,\yup+\upsizey+\upshift) node [black,midway,yshift=+0.6cm, align=center] {\footnotesize $n$ filters of\\\footnotesize size $k \times k \times 3$};
33
\draw[very thick, ->,>=latex] (3, 4.5) [out=70, in=110] to (\distance-0.5, 4.5);
34
\draw [color=white,decorate,decoration={brace,amplitude=+4pt, mirror},xshift=0pt,yshift=+2pt]
35
(1.1, 0) -- (3.1, 3) node [sloped,black,midway,yshift=+0.6cm, align=center] {width $w$};
36
\draw [color=white,decorate,decoration={brace,amplitude=+4pt, mirror},xshift=0pt,yshift=+2pt]
37
(\distance+1.7, 0) -- (\distance+3.7, 3) node [sloped,black,midway,yshift=+0.6cm, align=center] {width $w$};
38
\draw [decorate,decoration={brace,amplitude=+4pt},xshift=-2pt,yshift=0pt]
39
(0, 0) -- (0, 4) node [sloped,black,midway,yshift=+0.6cm, align=center] {height $h$};
40
\draw [decorate,decoration={brace,amplitude=+4pt},xshift=-2pt,yshift=0pt]
41
(\distance, 0) -- (\distance, 4) node [sloped,black,midway,yshift=+0.6cm, align=center] {height $h$};
42
\node at (-2.5,7.5) {\Large neural};
43
\node at (-2.5,7) {\Large network};
44
\node at (-2.5,2) {\Large data};
45
46
\node at (+4.3,5.5) {apply};
47
\node at (\distance+0.95,3.9) {\dots};
48
\node at (\distance+0.95,2) {\dots};
49
\node at (\distance+0.95,0.1) {\dots};
50
51
\node at (\xup+1.05,\yup+1.9) {\dots};
52
\node at (\xup+1.05,\yup+1.0) {\dots};
53
\node at (\xup+1.05,\yup+0.1) {\dots};
54
\end{tikzpicture}
55
56