
      	\begin{tikzpicture}[scale= 1, transform shape]

  	      	\onslide<2->{

		\draw[draw=red!60,fill=red!20,thick,solid,rounded corners] (-2.5,-3.75) rectangle (-1,0.75);
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (-2,0.5){ \tiny \textbf{Encoder}};
			\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (I) at (-1.5,-3){\includegraphics[scale=0.3]{images/frisbee.jpg}};
      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=green!50, draw=black] (N0) at (-1.5,-1.5){\tiny CNN};

      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A0) at (-1.5,0){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (-2,0){\tiny $h_0$};
      		\draw[->](I)--(N0);
      		\draw[->](N0)--(A0);
                  }
                  \onslide<3->{
      	\draw[draw=green!60,fill=red!20,thick,solid,rounded corners] (-0.5,-1.5) rectangle (6,4);
                  \node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0.5,3.75){\tiny \textbf{Decoder}};
            
            	\node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb) at (0,-0.5){};
      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A) at (0,1){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0,-1){\tiny $<$GO$>$};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0.1,0.25){\tiny U};
%      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (-0.5,0.8){\tiny $s_0$};
		\draw [->] plot coordinates {(-1.5,0.4) (-1.5,1) (-0.5,1) };
      		\draw[->](Aemb)--(A);
%      		\draw[->](-0.75,1)--(A);
      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=green!50, draw=black] (C) at (0,2.8){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0.1,1.9){\tiny V};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0,3.3){\tiny A};
      		
      		\draw[->](A)--(C);

      	  		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A1) at (1,1){};
      	  		\node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb) at (1,-0.5){};
      	  		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1,-1){\tiny A};
      			\draw[->](A)--(A1);
      	  		\draw[->](Aemb)--(A1);
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1.1,0.25){\tiny U};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1.1,1.9){\tiny V};
      	  		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0.5,1.2){\tiny W};
      	  		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=green!50, draw=black] (C) at (1,2.8){};
      	  		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1,3.3){\tiny man};
      	  		
      	  		\draw[->](A1)--(C);

      	  	      	  		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A2) at (2,1){};
      	  	      	  		\node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb) at (2,-0.5){};
      	  	      	  		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2,-1){\tiny man};
      	  	      	  		\draw[->](A1)--(A2);
      	  	      	  		\draw[->](Aemb)--(A2);
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2.1,0.25){\tiny U};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2.1,1.9){\tiny V};
      	  		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1.5,1.2){\tiny W};
      	  	      	  		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=green!50, draw=black] (C) at (2,2.8){};
      	  	      	  		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2,3.3){\tiny throwing};
      	  	      	  		
      	  	      	  		\draw[->](A2)--(C);

      	  	      	  	      	  		\node [rectangle, minimum height=6mm, minimum width=3mm, align=center] (Aemb) at (3,-0.5){. . .};
      	  	      	  	      	  			\node [rectangle, minimum height=8mm, minimum width=3mm, align=center] (A3) at (3,1){. . .};
      	  	      	  	      	  		\draw[->](A2)--(A3);
      	  		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2.5,1.2){\tiny W};
      	  	      	  	      	  		\node [rectangle, minimum height=8mm, minimum width=3mm, align =center] (C) at (3,2.8){. . .};
      	  	      	  	      	  		

      	  	      	  	      	  		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A4) at (4,1){};
      	  	      	  	      	  		\node [rectangle, minimum height=6mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb) at (4,-0.5){};
      	  	      	  	      	  		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (4,-1){\tiny park};
      	  	      	  	      	  		\draw[->](Aemb)--(A4);
      	  	      	  	      	  		\draw[->](A3)--(A4);
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (4.1,0.25){\tiny U};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (4.1,1.9){\tiny V};
      	  		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (3.5,1.2){\tiny W};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (4.4,-0.5){\tiny $x_{\textsc{t}}$};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (4.4,1){\tiny $s_{\textsc{t}}$};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (3.6,2.8){\tiny $y_t$};
      	  	      	  	      	  		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=green!50, draw=black] (C) at (4,2.8){};
      	  	      	  	      	  		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (4,3.3){\tiny $\langle$ stop $\rangle$};
      	  	      	  	      	  		
      	  	      	  	      	  		\draw[->](A4)--(C);
      	  	      	  	      	  		\draw[-](3.85,2.85)--(4.15,2.85);
      	  	      	  	      	  		\draw[-](3.85,2.75)--(4.15,2.75);
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=2cm, align=center] (w1) at (5.05,2.8){\tiny $P(y_t = j|y_1^{t-1},I)$};
      	  	      	  	      	  	}     		
      		\end{tikzpicture}
