figure-deep-vs-light.tex 1.98 KB
Newer Older
zengxin committed
1 2 3 4

\begin{tikzpicture}
	\tikzstyle{every node}=[scale=1.5]
	\tikzstyle{unit} = [inner sep=0pt, minimum size=1em,draw,thick]
zengxin committed
5
	\tikzstyle{vuale} = [inner sep=0pt,font=\tiny]
zengxin committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

	
	\begin{scope}
	\foreach \point in {0,1,2,3}{
	\node[unit] (l1_\point) at (0, 0+\point*1.5em){};
	\node[unit] (l2_\point) at (0, 8em+\point*1.5em){};
	
	\node[unit] (r1_\point) at (5em, 0+\point*1.5em){};
	\node[unit] (r2_\point) at (5em, 8em+\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);
	\draw[line width=0.5pt, gray!80, -latex] (l\point_3.east) -- (r2_3.west);
	}
	
	\node[vuale] at (-1.5em, 1.9em) {$x_2$};
	\node[vuale] at (-1.5em, 9.9em) {$x_1$};
	\node[vuale] at (6.5em, 1.9em) {$y_1$};
	\node[vuale] at (6.5em, 9.9em) {$y_2$};
	
	\node (t2) at (2.5em, -1em) {\large{$\cdots$}};
zengxin committed
30
	\node [anchor=north,font=\tiny] at ([yshift=-0.2em]t2.south) {深度卷积};
zengxin committed
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
	\end{scope}

	\begin{scope}[xshift=4cm]
	\foreach \point in {0,1,2,3}{
	\node[unit] (l1_\point) at (0, 0+\point*1.5em){};
	\node[unit] (l2_\point) at (0, 8em+\point*1.5em){};
	
	\node[unit] (r1_\point) at (5em, 0+\point*1.5em){};
	\node[unit] (r2_\point) at (5em, 8em+\point*1.5em){};
	}
	
	\foreach \point in {1,2}{
	\draw[line width=0.5pt, orange!80, -latex] (l\point_0.east) -- (r2_0.west);
	\draw[line width=0.5pt, cyan!80, -latex] (l\point_1.east) -- (r2_1.west);
	\draw[line width=0.5pt, orange!80, -latex] (l\point_2.east) -- (r2_2.west);
	\draw[line width=0.5pt, cyan!80, -latex] (l\point_3.east) -- (r2_3.west);
	}
	
	\node[vuale] at (-1.5em, 1.9em) {$x_2$};
	\node[vuale] at (-1.5em, 9.9em) {$x_1$};
	\node[vuale] at (6.5em, 1.9em) {$y_1$};
	\node[vuale] at (6.5em, 9.9em) {$y_2$};
	
	\node (t2) at (2.5em, -1em) {\large{$\cdots$}};
zengxin committed
55
	\node [anchor=north,font=\tiny] at ([yshift=-0.2em]t2.south) {轻量卷积};
zengxin committed
56 57 58
	\end{scope}
	
\end{tikzpicture}