Няма описание

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. \documentclass{article}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage{amsmath, amssymb, latexsym}
  4. \DeclareMathOperator{\ReLU}{ReLU}
  5. \usepackage{tikz}
  6. \usepackage{xcolor}
  7. \definecolor{fc}{HTML}{1E90FF}
  8. \definecolor{h}{HTML}{228B22}
  9. \definecolor{bias}{HTML}{87CEFA}
  10. \definecolor{noise}{HTML}{8B008B}
  11. \definecolor{conv}{HTML}{FFA500}
  12. \definecolor{pool}{HTML}{B22222}
  13. \definecolor{up}{HTML}{B22222}
  14. \definecolor{view}{HTML}{FFFFFF}
  15. \definecolor{bn}{HTML}{FFD700}
  16. \tikzset{fc/.style={black,draw=black,fill=fc,rectangle,minimum height=1cm}}
  17. \tikzset{h/.style={black,draw=black,fill=h,rectangle,minimum height=1cm}}
  18. \tikzset{bias/.style={black,draw=black,fill=bias,rectangle,minimum height=1cm}}
  19. \tikzset{noise/.style={black,draw=black,fill=noise,rectangle,minimum height=1cm}}
  20. \tikzset{conv/.style={black,draw=black,fill=conv,rectangle,minimum height=1cm}}
  21. \tikzset{conv2/.style={black,draw=black,fill=conv,rectangle,minimum height=1cm}}
  22. \tikzset{conv2t/.style={black,draw=black,fill=green,rectangle,minimum height=1cm}}
  23. \tikzset{pool/.style={black,draw=black,fill=pool,rectangle,minimum height=1cm}}
  24. \tikzset{drop/.style={black,draw=black,fill=pool,rectangle,minimum height=1cm}}
  25. \tikzset{up/.style={black,draw=black,fill=up,rectangle,minimum height=1cm}}
  26. \tikzset{view/.style={black,draw=black,fill=view,rectangle,minimum height=1cm}}
  27. \tikzset{bn/.style={black,draw=black,fill=bn,rectangle,minimum height=1cm}}
  28. \usepackage{xspace}
  29. \newcommand*{\eg}{\emph{e.g.}\@\xspace}
  30. \newcommand*{\Eg}{\emph{E.g.}\@\xspace}
  31. \newcommand*{\ie}{\emph{i.e.}\@\xspace}
  32. \newcommand*{\etc}{\emph{etc.}\@\xspace}
  33. \newcommand*{\etal}{\emph{et al.}\@\xspace}
  34. \newcommand*{\cf}{\emph{cf.}\@\xspace}
  35. \newcommand*{\vs}{\emph{vs.}\@\xspace}
  36. \begin{document}
  37. \begin{figure}
  38. \centering
  39. \hspace*{-0.75cm}
  40. \begin{tikzpicture}
  41. \node (y) at (0,0) {$\mathbf{X}$};
  42. \node (yl) at (0,-3) {.};
  43. \node[conv,rotate=90,minimum width=4.5cm] (conv1) at (1.25,0) {\small$\text{Conv1D}_{64, 7, 2}$\,+\,$\ReLU$};
  44. \node[drop,rotate=90,minimum width=3.5cm] (drop1) at (3.,0) {\small$\text{DropOut}$};
  45. \node[conv2,rotate=90,minimum width=3.5cm] (conv2) at (4.75,0) {\small$\text{Conv1D}_{32, 7, 2}$\,+\,$\ReLU$};
  46. \node[conv2t,rotate=90,minimum width=3.5cm] (convt) at (6.5,0) {\small$\text{Conv1DT}_{32, 7, 2}$\,+\,$\ReLU$};
  47. \node[drop,rotate=90,minimum width=3.5cm] (drop2) at (8.25,0) {\small$\text{DropOut}$};
  48. \node[conv2t,rotate=90,minimum width=4.5cm] (conv2t) at (10,0) {\small$\text{Conv1DT}_{64, 7, 2}$\,+\,$\ReLU$};
  49. \node[conv2t,rotate=90,minimum width=3.5cm] (conv3t) at (11.75,0) {\small$\text{Conv1DT}_{22, 7, 1}$};
  50. \node (ry) at (13,0) {$\mathbf{\hat{X}}$};
  51. \node (ryl) at (13,0-3) {.};
  52. \draw[->,ultra thick] (y) -- (conv1);
  53. \draw[->,ultra thick] (conv1) -- (drop1);
  54. \draw[->,ultra thick] (drop1) -- (conv2);
  55. \draw[->,ultra thick] (conv2) -- (convt);
  56. \draw[->,ultra thick] (convt) -- (drop2);
  57. \draw[<-,ultra thick] (conv2t) -- (drop2);
  58. \draw[->,ultra thick] (conv2t) -- (conv3t);
  59. \draw[->,ultra thick] (conv3t) -- (ry);
  60. \draw[dashed] (y) -- (yl);
  61. \draw[dashed] (ry) -- (ryl);
  62. \draw[dashed,<->] (yl) to node[above] {$\overline{|\mathbf{\hat{X}}-\mathbf{X}|}$} (ryl);
  63. \end{tikzpicture}
  64. \end{figure}
  65. \end{document}

Powered by TurnKey Linux.