
\begin{tikzpicture}[scale= 0.8, transform shape]
  	      	\onslide<1->{
      		\node [rectangle, minimum height=10mm, minimum width=3mm, align=center] (F) at (0,-2.5){\includegraphics[scale=0.03]{images/man2.png}};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, align=center] (F1) at (1.5,-2.5){\includegraphics[scale=0.03]{images/man3.png}};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, align=center] (F2) at (2.5,-2.5){. . .};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, align=center] (F3) at (4,-2.5){\includegraphics[scale=0.03]{images/man4.png}};
		}
		\onslide<1->{
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=7cm, align=center] (I) at (2,6.5){o/p : A man walking on a rope};
		}
  	      	\onslide<4->{
		\draw[draw=red!60,fill=red!20,thick,solid,rounded corners] (-0.6,-3.5) rectangle (4.6,2);
      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A) at (0,1.5){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb) at (0,0){};
      		\draw[->](Aemb)--(A);
      		\node [rectangle, minimum height=3mm, minimum width=8mm, fill=green!50, draw=black] (N) at (0,-1.25){\tiny CNN};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, align=center] (F) at (0,-2.5){\includegraphics[scale=0.03]{images/man2.png}};
      		\draw[->](F)--(N);
      		\draw[->](N)--(Aemb);
      		
      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A1) at (1.5,1.5){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb1) at (1.5,0){};
      		\draw[->](Aemb1)--(A1);
      		\draw[->](A)--(A1);
      		\node [rectangle, minimum height=3mm, minimum width=8mm, fill=green!50, draw=black] (N1) at (1.5,-1.25){\tiny CNN};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, align=center] (F1) at (1.5,-2.5){\includegraphics[scale=0.03]{images/man3.png}};
      		\draw[->](F1)--(N1);
      		\draw[->](N1)--(Aemb1);

      		\node [rectangle, minimum height=8mm, minimum width=3mm, align=center] (A2) at (2.5,1.5){. . .};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, align=center] (Aemb2) at (2.5,0){. . .};
      		\node [rectangle, minimum height=3mm, minimum width=8mm, align=center] (N2) at (2.5,-1.25){. . .};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, align=center] (F2) at (2.5,-2.5){. . .};
      		\draw[->](A1)--(A2);

      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (A3) at (4,1.5){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Aemb3) at (4,0){};
      		\draw[->](Aemb3)--(A3);
      		\draw[->](A2)--(A3);
      		\node [rectangle, minimum height=3mm, minimum width=8mm, fill=green!50, draw=black] (N3) at (4,-1.25){\tiny CNN};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, align=center] (F3) at (4,-2.5){\includegraphics[scale=0.03]{images/man4.png}};
      		\draw[->](F3)--(N3);
      		\draw[->](N3)--(Aemb3);
	}
	\onslide<5->{
		\draw[draw=red!60,fill=green!20,thick,solid,rounded corners] (-1.2,2.4) rectangle (5,7.1);
      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (B) at (-0.5,4.5){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Bemb) at (-0.5,3){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=green!200, draw=black] (C) at (-0.5,6){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (-0.5,6.7){\tiny A};
      		\draw[->](Bemb)--(B);
      		\draw[->](B)--(C);
		\draw [->] plot coordinates {(4,1.9) (4,2.25) (-1,2.25) (-1, 4.5)  (-0.7,4.5)};

      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (B1) at (0.5,4.5){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Bemb1) at (0.5,3){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=green!200, draw=black] (C1) at (0.5,6){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (0.5,6.7){\tiny man};
      		\draw[->](Bemb1)--(B1);
      		\draw[->](B)--(B1);
      		\draw[->](B1)--(C1);

      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (B2) at (1.5,4.5){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Bemb2) at (1.5,3){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=green!200, draw=black] (C2) at (1.5,6){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (1.5,6.7){\tiny walking};
      		\draw[->](Bemb2)--(B2);
      		\draw[->](B2)--(C2);
      		\draw[->](B1)--(B2);

      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (B3) at (2.5,4.5){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Bemb3) at (2.5,3){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=green!200, draw=black] (C3) at (2.5,6){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=1cm, align=center] (w1) at (2.5,6.7){\tiny on};
      		\draw[->](Bemb3)--(B3);
      		\draw[->](B3)--(C3);
      		\draw[->](B2)--(B3);

      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (B4) at (3.5,4.5){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Bemb4) at (3.5,3){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=green!200, draw=black] (C4) at (3.5,6){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=2cm, align=center] (w1) at (3.5,6.7){\tiny a};
      		\draw[->](Bemb4)--(B4);
      		\draw[->](B4)--(C4);
      		\draw[->](B3)--(B4);

	
      		\node [rectangle, minimum height=8mm, minimum width=3mm, fill=blue!50, draw=black] (B5) at (4.5,4.5){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=orange!50, draw=black] (Bemb5) at (4.5,3){};
      		\node [rectangle, minimum height=10mm, minimum width=3mm, fill=green!200, draw=black] (C5) at (4.5,6){};
      		\node [rectangle, minimum height=3mm, minimum width=3mm,text width=2cm, align=center] (w1) at (4.5,6.7){\tiny rope};
      		\draw[->](Bemb5)--(B5);
      		\draw[->](B5)--(C5);
      		\draw[->](B4)--(B5);
	}

\end{tikzpicture}
