      </ul>
            Outputs<br>
            <ul>
                <li>conf: A numpy array of size [B,N]
            </ul>
            <p>APT uses confidence values are postprocessing and for browsing difficult examples.</p>

            <pre><code>
              def get_conf_from_preds(self, pred):
                  # if pred are heatmaps
                  return np.max(pred, axis=(1, 2))
            </code></pre>


    <h3><a id="pb_loss"> Defining loss function:</a></h3>
        Inputs<br>
        <ul>