答案1
这看起来像是使用以下算法生成的algorithm2e
:
\documentclass{article}
\usepackage[linesnumbered,ruled]{algorithm2e}
\usepackage{amsmath}
\SetKwInput{Require}{Require}
\SetKwInput{Input}{Input}
\begin{document}
\begin{algorithm}
\caption{Training Procedure of MTCL}
\Require{\begin{tabular}[t]{@{} l @{}}
The feature encoder~$\sigma_\theta$; \\
Momentum rate~$\alpha$; \\
Temperature parameter~$\tau$;
\end{tabular}}
\Input{Training videos $\mathbf{V} = \{ V_1, V_2, \dots, V_N \}$;}
\For{each epoch}{
Initialize a trajectory-center memory bank~$\mathbf{B}$\;
\For{each mini\_batch}{
Extract feature maps~$F_b$ by $\sigma_\theta(V_b)$\;
Detect all targets in~$V_b$ given~$F_b$\;
Generate multiview appearance vectors by LVS with Eq.~\eqref{eq:first} and Eq.~\eqref{eq:second}\;
Compute trajectory-level contrastive loss~$L_{tcl}$ with Eq.~\eqref{eq:fourth} and E1.~\eqref{eq:sixth}\;
Update~$\mathbf{B}$ with Eq.~\eqref{eq:fourth}\;
}
}
\end{algorithm}
\end{document}