\documentclass[border=8pt, multi, tikz]{standalone}
%\usepackage{blocks}
\usepackage{import}
\usetikzlibrary{positioning}
\usetikzlibrary{quotes,arrows.meta}
\usetikzlibrary{positioning}
\usetikzlibrary{arrows, decorations.markings}
\usetikzlibrary{calc}

\def\edgecolor{rgb:blue,4;red,1;green,4;black,3}
\newcommand{\midarrow}{\tikz \draw[-Stealth,line width =0.8mm,draw=\edgecolor] (-0.3,0) -- ++(0.3,0);}

\usepackage{tikz/Ball}
\usepackage{tikz/Box}
\usepackage{tikz/RightBandedBox}



\def\InputColor{rgb:blue,2;black,0.3}
\def\ConvColor{rgb:yellow,5;red,2.5;white,5}
\def\LeakyReLUColor{rgb:red,5;white,5}
\def\DropColor{rgb:blue,1;black,0.3}
\def\ConcatColor{rgb:blue,5;red,2.5;white,5}
\def\GaussianColor{rgb:blue,5;red,5;white,4}
\def\OutColor{rgb:magenta,5;black,7}


\newcommand{\copymidarrow}{\tikz \draw[-Stealth,line width =0.8mm,draw={rgb:blue,4;red,1;green,1;black,3}] (-0.3,0) -- ++(0.3,0);}

\begin{document}
\begin{tikzpicture}
\tikzstyle{connection}=[ultra thick,every node/.style={sloped,allow upside down},draw=\edgecolor,opacity=0.7]
\tikzstyle{copyconnection}=[ultra thick,every node/.style={sloped,allow upside down},draw={rgb:blue,4;red,1;green,1;black,3},opacity=0.7]
\tikzstyle{vecArrow} = [thick, decoration={markings,mark=at position
   1 with {\arrow[semithick]{open triangle 60}}},
   double distance=1.4pt, shorten >= 5.5pt,
   preaction = {decorate},
   postaction = {draw,line width=1.4pt, white,shorten >= 4.5pt}]
\tikzstyle{innerWhite} = [semithick, white,line width=1.4pt, shorten >= 4.5pt]

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Input
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% conv1_1,conv1_2
\pic[shift={(0,0,0)}] at (0,0,0) {Box={name=input,%
        xlabel={{"1","dummy"}},fill=\InputColor,height=40,width=1,depth=40}};
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% Draw Encoder
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% conv1_1,conv1_2
\pic[shift={(2,0,0)}] at (input-east) {Box={name=noise1,%
        fill=\GaussianColor,
        height=40,width={1},depth=40}};
\pic[shift={(0,0,0)}] at (noise1-east) {RightBandedBox={name=conv1,%
        xlabel={{"128","dummy"}},fill=\ConvColor,bandfill=\LeakyReLUColor,
        height=40,width={4},depth=40}};
        
\pic[shift={(2,0,0)}] at (conv1-east) {Box={name=noise2,%
        fill=\GaussianColor,
        height=30,width={1},depth=30}};
\pic[shift={(0,0,0)}] at (noise2-east) {RightBandedBox={name=conv2,%
        xlabel={{"256","dummy"}},fill=\ConvColor,bandfill=\LeakyReLUColor,
        height=30,width={8},depth=30}};
        
\pic[shift={(2,0,0)}] at (conv2-east) {Box={name=noise3,%
        fill=\GaussianColor,
        height=20,width={1},depth=20}};
\pic[shift={(0,0,0)}] at (noise3-east) {RightBandedBox={name=conv3,%
        xlabel={{"512","dummy"}},fill=\ConvColor,bandfill=\LeakyReLUColor,
        height=20,width={12},depth=20}};
          
\pic[shift={(2,0,0)}] at (conv3-east) {Box={name=noise4,%
        fill=\GaussianColor,
        height=15,width={1},depth=15}};
\pic[shift={(0,0,0)}] at (noise4-east) {RightBandedBox={name=conv4,%
        xlabel={{"512","dummy"}},fill=\ConvColor,bandfill=\LeakyReLUColor,
        height=15,width={12},depth=15}};
          
\pic[shift={(2,0,0)}] at (conv4-east) {Box={name=noise5,%
        fill=\GaussianColor,
        height=10,width={1},depth=10}};
\pic[shift={(0,0,0)}] at (noise5-east) {RightBandedBox={name=conv5,%
        xlabel={{"512","dummy"}},fill=\ConvColor,bandfill=\LeakyReLUColor,
        height=10,width={12},depth=10}};
        
\pic[shift={(2,0,0)}] at (conv5-east) {Box={name=noise6,%
        fill=\GaussianColor,
        height=10,width={1},depth=10}};
\pic[shift={(0,0,0)}] at (noise6-east) {RightBandedBox={name=conv6,%
        xlabel={{"512","dummy"}},fill=\ConvColor,bandfill=\LeakyReLUColor,
        height=10,width={12},depth=10}};
        
\pic[shift={(2,0,0)}] at (conv6-east) {Box={name=final,%
        xlabel={{"6","dummy"}},fill=\OutColor,bandfill=\LeakyReLUColor,
        height=10,width={4},depth=10}};
        

%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Draw connections
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\draw[connection](input-east)--node{\midarrow}(noise1-west);
\draw[connection](conv1-east)--node{\midarrow}(noise2-west);
\draw[connection](conv2-east)--node{\midarrow}(noise3-west);
\draw[connection](conv3-east)--node{\midarrow}(noise4-west);
\draw[connection](conv4-east)--node{\midarrow}(noise5-west);
\draw[connection](conv5-east)--node{\midarrow}(noise6-west);
\draw[connection](conv6-east)--node{\midarrow}(final-west);

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\end{tikzpicture}
\end{document}
