How should I fix the following? The caption overlaps with either of figure and tables.
\begin{table}[]
\caption{\label{tab:compareResult1}
Results of Ablation Studies: Accuracy of different input settings on KenyanFood13.}
\vspace*{-.3cm}
\begin{tabular}{|c|r|r|}
\hline
\multirow{2}{*}{\textbf{Method}} & \multicolumn{2}{c|}{\textbf{Test Accuracy}} \\ \cline{2-3}
&\textbf{Top-1} & \textbf{Top-3} \\ \hline\hline
Image only & 73.18\%$\pm$ 0.79\% & 92.04\%$\pm$ 0.44\% \\ \hline
Caption only & 65.30\%$\pm$ 1.70\% & 83.68\%$\pm$ 1.55\% \\ \hline\hline
{\bf Ours:} Image + Caption & 81.04\%$\pm$ 0.86\% & 95.95\%$\pm$ 0.44\% \\ \hline
\end{tabular}
\vspace*{-0.2cm}
\end{table}
Best Answer
Inserting a negative
\vspace
is most likely the cause behind the overlapping of the\caption
and yourtabular
.The following removes this and uses a
booktabs
representation: