figure-standard.tex 5.33 KB
Newer Older
zengxin committed
1 2 3

\begin{tikzpicture}
	\tikzstyle{every node}=[scale=1.5]
zengxin committed
4
	\tikzstyle{unit} = [inner sep=0pt, minimum size=1em,draw,very thick]
zengxin committed
5
	%, font=\scriptsize
zengxin committed
6
	\tikzstyle{vuale} = [inner sep=0pt,font=\tiny]
zengxin committed
7 8 9 10 11 12 13 14 15 16 17 18 19

	\begin{scope}
	\foreach \point in {0,1,2}{
	\node[unit] (l1_\point) at (0, 0+\point*1.5em){};
	\node[unit] (l2_\point) at (0, 6em+\point*1.5em){};
	\node[unit] (l3_\point) at (0, 12em+\point*1.5em){};
	
	\node[unit] (r1_\point) at (5em, 0+\point*1.5em){};
	\node[unit] (r2_\point) at (5em, 6em+\point*1.5em){};
	\node[unit] (r3_\point) at (5em, 12em+\point*1.5em){};
	}
	
	\foreach \point in {0,1,2}{
zengxin committed
20 21 22 23 24 25
	\draw[line width=0.5pt, ugreen!80, -latex] (l1_\point.east) -- ([xshift=-0.1em,yshift=-0.1em]r2_0.west);
	\draw[line width=0.5pt, orange!80, -latex] (l1_\point.east) -- ([xshift=-0.1em,yshift=-0.1em]r2_1.west);
	\draw[line width=0.5pt, cyan!80, -latex] (l1_\point.east) -- ([xshift=-0.1em,yshift=-0.1em]r2_2.west);
	\draw[line width=0.5pt, ugreen!80, -latex] (l2_\point.east) -- ([xshift=0em,yshift=0.1em]r2_0.west);
	\draw[line width=0.5pt, orange!80, -latex] (l2_\point.east) -- ([xshift=0em,yshift=0.1em]r2_1.west);
	\draw[line width=0.5pt, cyan!80, -latex] (l2_\point.east) -- ([xshift=0em,yshift=0.1em]r2_2.west);
zengxin committed
26
	
zengxin committed
27 28 29 30 31 32
	\draw[line width=0.5pt, ugreen!80, -latex] (l2_\point.east) -- ([xshift=-0.1em,yshift=-0.1em]r3_0.west);
	\draw[line width=0.5pt, orange!80, -latex] (l2_\point.east) -- ([xshift=-0.1em,yshift=-0.1em]r3_1.west);
	\draw[line width=0.5pt, cyan!80, -latex] (l2_\point.east) -- ([xshift=-0.1em,yshift=-0.1em]r3_2.west);
	\draw[line width=0.5pt, ugreen!80, -latex] (l3_\point.east) -- ([xshift=0em,yshift=0.1em]r3_0.west);
	\draw[line width=0.5pt, orange!80, -latex] (l3_\point.east) -- ([xshift=0em,yshift=0.1em]r3_1.west);
	\draw[line width=0.5pt, cyan!80, -latex] (l3_\point.east) -- ([xshift=0em,yshift=0.1em]r3_2.west);
zengxin committed
33 34
	}
	
zengxin committed
35 36 37 38 39 40
	\node[vuale] at ([xshift=-0.9em]l1_1.west) {$\mathbi{x}_3$};
	\node[vuale] at ([xshift=-0.9em]l2_1.west) {$\mathbi{x}_2$};
	\node[vuale] at ([xshift=-0.9em]l3_1.west) {$\mathbi{x}_1$};
	\node[vuale] at ([xshift=0.9em]r1_1.east) {$\mathbi{z}_3$};
	\node[vuale] at ([xshift=0.9em]r2_1.east) {$\mathbi{z}_2$};
	\node[vuale] at ([xshift=0.9em]r3_1.east) {$\mathbi{z}_1$};
zengxin committed
41 42
	
	\node (t1) at (2.5em, -1em) {\large{$\cdots$}};
zengxin committed
43
	\node [anchor=north,font=\tiny,scale=1.1] at ([yshift=-0.2em]t1.south) {(a) 标准卷积};
zengxin committed
44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68
	\end{scope}
	
	\begin{scope}[xshift=4cm]
	\foreach \point in {0,1,2}{
	\node[unit] (l1_\point) at (0, 0+\point*1.5em){};
	\node[unit] (l2_\point) at (0, 6em+\point*1.5em){};
	\node[unit] (l3_\point) at (0, 12em+\point*1.5em){};
	
	\node[unit] (r1_\point) at (5em, 0+\point*1.5em){};
	\node[unit] (r2_\point) at (5em, 6em+\point*1.5em){};
	\node[unit] (r3_\point) at (5em, 12em+\point*1.5em){};
	}
	
	\foreach \point in {1,2}{
	\draw[line width=0.5pt, ugreen!80, -latex] (l\point_0.east) -- (r2_0.west);
	\draw[line width=0.5pt, orange!80, -latex] (l\point_1.east) -- (r2_1.west);
	\draw[line width=0.5pt, cyan!80, -latex] (l\point_2.east) -- (r2_2.west);
	}
	
	\foreach \point in {2,3}{
	\draw[line width=0.5pt, ugreen!80, -latex] (l\point_0.east) -- (r3_0.west);
	\draw[line width=0.5pt, orange!80, -latex] (l\point_1.east) -- (r3_1.west);
	\draw[line width=0.5pt, cyan!80, -latex] (l\point_2.east) -- (r3_2.west);
	}
	
zengxin committed
69 70 71 72 73 74
	\node[vuale] at ([xshift=-0.9em]l1_1.west) {$\mathbi{x}_3$};
	\node[vuale] at ([xshift=-0.9em]l2_1.west) {$\mathbi{x}_2$};
	\node[vuale] at ([xshift=-0.9em]l3_1.west) {$\mathbi{x}_1$};
	\node[vuale] at ([xshift=0.9em]r1_1.east) {$\mathbi{z}_3$};
	\node[vuale] at ([xshift=0.9em]r2_1.east) {$\mathbi{z}_2$};
	\node[vuale] at ([xshift=0.9em]r3_1.east) {$\mathbi{z}_1$};
zengxin committed
75 76
	
	\node (t2) at (2.5em, -1em) {\large{$\cdots$}};
zengxin committed
77
	\node [anchor=north,font=\tiny,scale=1.1] at ([yshift=-0.2em]t2.south) {(b) 深度卷积};
zengxin committed
78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
	\end{scope}
	
	\begin{scope}[xshift=8cm]
	\foreach \point in {0,1,2}{
	\node[unit] (l1_\point) at (0, 0+\point*1.5em){};
	\node[unit] (l2_\point) at (0, 6em+\point*1.5em){};
	\node[unit] (l3_\point) at (0, 12em+\point*1.5em){};
	
	\node[unit] (r1_\point) at (5em, 0+\point*1.5em){};
	\node[unit] (r2_\point) at (5em, 6em+\point*1.5em){};
	\node[unit] (r3_\point) at (5em, 12em+\point*1.5em){};
	}
	
	\foreach \point in {0,1,2}{
	\draw[line width=0.5pt, ugreen!80, -latex] (l1_\point.east) -- (r1_0.west);
	\draw[line width=0.5pt, ugreen!80, -latex] (l2_\point.east) -- (r2_0.west);
	\draw[line width=0.5pt, ugreen!80, -latex] (l3_\point.east) -- (r3_0.west);
	
	\draw[line width=0.5pt, orange!80, -latex] (l1_\point.east) -- (r1_1.west);
	\draw[line width=0.5pt, orange!80, -latex] (l2_\point.east) -- (r2_1.west);
	\draw[line width=0.5pt, orange!80,, -latex] (l3_\point.east) -- (r3_1.west);
	
	\draw[line width=0.5pt, cyan!80, -latex] (l1_\point.east) -- (r1_2.west);
	\draw[line width=0.5pt, cyan!80, -latex] (l2_\point.east) -- (r2_2.west);
	\draw[line width=0.5pt, cyan!80, -latex] (l3_\point.east) -- (r3_2.west);
	}
	
zengxin committed
105 106 107 108 109 110
	\node[vuale] at ([xshift=-0.9em]l1_1.west) {$\mathbi{x}_3$};
	\node[vuale] at ([xshift=-0.9em]l2_1.west) {$\mathbi{x}_2$};
	\node[vuale] at ([xshift=-0.9em]l3_1.west) {$\mathbi{x}_1$};
	\node[vuale] at ([xshift=0.9em]r1_1.east) {$\mathbi{z}_3$};
	\node[vuale] at ([xshift=0.9em]r2_1.east) {$\mathbi{z}_2$};
	\node[vuale] at ([xshift=0.9em]r3_1.east) {$\mathbi{z}_1$};
zengxin committed
111 112
	
	\node (t3) at (2.5em, -1em) {\large{$\cdots$}};
zengxin committed
113
	\node [anchor=north,font=\tiny,scale=1.1] at ([yshift=-0.2em]t3.south) {(c) 逐点卷积};
zengxin committed
114 115 116
	\end{scope}
	
\end{tikzpicture}