参考:
\makeatletter
\newcommand\figcaption{\def\@captype{figure}\caption}
\newcommand\tabcaption{\def\@captype{table}\caption}
\makeatother
\begin{figure}[tb]
\centering
\begin{minipage}{0.45\textwidth}
\centering
% \tabcaption{Ablation study of XXX.}
% \label{tab:ablation}
\begin{tabular}{|l|rl|}
\hline
\bf Model & \bf $F_1$ & \\
\hline
\quad-- CCCC & 70 & \\
\quad-- DDDD & 72 & \\
\quad-- AAAA & 71 & \\
\quad-- BBBB & 68 & \\
\hline
\end{tabular}
\end{minipage}
% \hspace{0.5in}
\begin{minipage}[h]{0.45\textwidth}
\centering
\includegraphics[width=0.97\linewidth]{Figures/First/method18}
\figcaption{$F_1$ variation with XXX}
\label{fig:layers}
\end{minipage}%
\end{figure}